Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
Josef Gabrielsson committed Jun 2, 2024
1 parent b1c91d9 commit 5ef340b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions nightly/modules/keyboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,14 @@ app.module.keyboard = {
},

key: function (element) {
var key = element.getAttribute('keyboard-key'),
var key = element.getAttribute('keyboard-key').split(';'),
action = element.getAttribute('keyboard-action'),
scope = element.getAttribute('keyboard-scope')

dom.setUniqueId(element, true)

this.keys.push({ key: key, action: action, scope: scope, element: element })
for (var i = 0; i < key.length; i++) {
this.keys.push({ key: key[i], action: action, scope: scope, element: element })
}
},
}

0 comments on commit 5ef340b

Please sign in to comment.