mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-02-02 12:19:11 +00:00
Merge pull request #2049 from inmysocks/patch-11
Let $keyboard trigger action-widgets
This commit is contained in:
commit
e344dbe077
@ -42,6 +42,7 @@ KeyboardWidget.prototype.render = function(parent,nextSibling) {
|
||||
// Add a keyboard event handler
|
||||
domNode.addEventListener("keydown",function (event) {
|
||||
if($tw.utils.checkKeyDescriptor(event,self.keyInfo)) {
|
||||
self.invokeActions(this,event);
|
||||
self.dispatchMessage(event);
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
|
Loading…
Reference in New Issue
Block a user