mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-12-01 14:28:07 +00:00
Revert "Allow global keyboard shortcuts to work in framed editor (#6705)"
This reverts commit 8e64e21039.
See https://github.com/Jermolene/TiddlyWiki5/pull/6705#issuecomment-1162738927
This commit is contained in:
@@ -198,7 +198,6 @@ Each entry in the events array is an object with these properties:
|
||||
handlerFunction: optional event handler function
|
||||
handlerObject: optional event handler object
|
||||
handlerMethod: optionally specifies object handler method name (defaults to `handleEvent`)
|
||||
capture: optionally specifies the listener should use capture (defaults to `false`)
|
||||
*/
|
||||
exports.addEventListeners = function(domNode,events) {
|
||||
$tw.utils.each(events,function(eventInfo) {
|
||||
@@ -214,7 +213,7 @@ exports.addEventListeners = function(domNode,events) {
|
||||
handler = eventInfo.handlerObject;
|
||||
}
|
||||
}
|
||||
domNode.addEventListener(eventInfo.name,handler,!!eventInfo.capture);
|
||||
domNode.addEventListener(eventInfo.name,handler,false);
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user