mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
fix non-handled keyboard events coming from code mirror
This commit is contained in:
parent
9760eb71d3
commit
d8b7763dea
@ -138,11 +138,9 @@
|
|||||||
keys = handleObj.data.keys.toLowerCase().split(" ");
|
keys = handleObj.data.keys.toLowerCase().split(" ");
|
||||||
|
|
||||||
handleObj.handler = function(event) {
|
handleObj.handler = function(event) {
|
||||||
// Don't fire in text-accepting inputs that we didn't directly bind to
|
if (jQuery.hotkeys.options.filterTextInputs &&
|
||||||
if (this !== event.target && (/textarea|select/i.test(event.target.nodeName) ||
|
|
||||||
(jQuery.hotkeys.options.filterTextInputs &&
|
|
||||||
event.target.tagName != 'WEBVIEW' &&
|
event.target.tagName != 'WEBVIEW' &&
|
||||||
jQuery.inArray(event.target.type, jQuery.hotkeys.textAcceptingInputTypes) > -1))) {
|
jQuery.inArray(event.target.type, jQuery.hotkeys.textAcceptingInputTypes) > -1) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user