1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-16 10:29:54 +00:00

Merge pull request #2049 from inmysocks/patch-11

Let $keyboard trigger action-widgets
This commit is contained in:
Jeremy Ruston 2015-12-24 14:12:32 +00:00
commit e344dbe077

View File

@ -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();