Skip to content

Commit

Permalink
refactor: move logging in key press handler up
Browse files Browse the repository at this point in the history
  • Loading branch information
atennert committed Jan 23, 2021
1 parent 92f8150 commit d72c7cb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ class KeyPressHandler(
val keyCode = event.xkey.keycode
val keyMask = keyManager.filterMask(event.xkey.state)

val keySym = keyManager.getKeySym(keyCode.convert()) ?: return false

logger.logDebug("KeyPressHandler::handleEvent::key code: $keyCode, key mask: $keyMask")

val keySym = keyManager.getKeySym(keyCode.convert()) ?: return false

keyConfiguration.getBindingForKey(keySym, keyMask)?.let { keyBinding ->
when (keyBinding) {
is KeyAction -> act(keyBinding.action)
Expand Down

0 comments on commit d72c7cb

Please sign in to comment.