Add modifier variable to button actionstring (#4671)

* Add modifier variable to button actionstring

* Update ButtonWidget.tid

* Update droppable.js

* Create getEventModifierKeyDescriptor method in keyboard.js

* Update droppable.js

* Update button.js
This commit is contained in:
Simon Huber
2020-07-14 17:04:06 +01:00
committed by GitHub
parent a0bd93c596
commit 00ff0d6fa0
4 changed files with 14 additions and 4 deletions
+2 -1
View File
@@ -91,7 +91,8 @@ ButtonWidget.prototype.render = function(parent,nextSibling) {
handled = true;
}
if(self.actions) {
self.invokeActionString(self.actions,self,event);
var modifierKey = $tw.keyboardManager.getEventModifierKeyDescriptor(event);
self.invokeActionString(self.actions,self,event,{modifier: modifierKey});
}
if(handled) {
event.preventDefault();