hotkeys: Include .editable-section in processing_text().

Prevents accidental hotkey triggering while span.editable-section is
focused.  Fixes #5232.
This commit is contained in:
Cynthia Lin
2017-06-05 13:44:20 -07:00
committed by Tim Abbott
parent ffb3994b4e
commit dd1f3cfcb6

View File

@@ -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;
};