From dd1f3cfcb6fff6ba5fd4cac7b1b657ed264920c4 Mon Sep 17 00:00:00 2001 From: Cynthia Lin Date: Mon, 5 Jun 2017 13:44:20 -0700 Subject: [PATCH] hotkeys: Include .editable-section in processing_text(). Prevents accidental hotkey triggering while span.editable-section is focused. Fixes #5232. --- static/js/hotkey.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/hotkey.js b/static/js/hotkey.js index c161630a28..a195dd05f2 100644 --- a/static/js/hotkey.js +++ b/static/js/hotkey.js @@ -150,7 +150,7 @@ exports.get_keypress_hotkey = function (e) { }; exports.processing_text = function () { - var selector = 'input:focus,select:focus,textarea:focus,#compose-send-button:focus'; + var selector = 'input:focus,select:focus,textarea:focus,#compose-send-button:focus,.editable-section:focus'; return $(selector).length > 0; };