Skip to content

Commit

Permalink
improve arg names
Browse files Browse the repository at this point in the history
  • Loading branch information
knollengewaechs committed Dec 6, 2024
1 parent 9d802b3 commit dc0f709
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions frontend/javascripts/libs/input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ export class InputKeyboardNoLoop {

attach(
key: KeyboardKey,
callback: KeyboardHandler,
callbackKeyUp: KeyboardHandler = _.noop,
keyDownCallback: KeyboardHandler,
keyUpCallback: KeyboardHandler = _.noop,
isExtendedCommand: boolean = false,
) {
const binding = [
Expand All @@ -170,14 +170,14 @@ export class InputKeyboardNoLoop {
}

if (!event.repeat) {
callback(event);
keyDownCallback(event);
} else {
event.preventDefault();
event.stopPropagation();
}
},
(event: KeyboardEvent) => {
callbackKeyUp(event);
keyUpCallback(event);
},
];
if (isExtendedCommand) {
Expand Down

0 comments on commit dc0f709

Please sign in to comment.