Skip to content

Commit

Permalink
fixed another key input bug
Browse files Browse the repository at this point in the history
  • Loading branch information
drollinger committed Apr 23, 2021
1 parent 6703ff3 commit 0b8fa6c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/input/input.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,9 @@ let Input = function() {
gettingNextKey = true;
clickAssign = function(key) {
if (key != 'Escape') {
RegisterCommand([key], handlers[IdToKey[id]]);
let handle = handlers[IdToKey[id]];
UnregisterKey(IdToKey[id]);
RegisterCommand([key], handle);
IdToKey[id] = key;
localStorage[settings.storage.name+`.${id}`] = key;
};
Expand Down

0 comments on commit 0b8fa6c

Please sign in to comment.