Skip to content

fix(bindings): mirror RETURN bindings to KP_Enter - #9107

Open
harshithnadig wants to merge 1 commit into
omacom:quattrofrom
harshithnadig:fix/kp-enter-bindings
Open

fix(bindings): mirror RETURN bindings to KP_Enter#9107
harshithnadig wants to merge 1 commit into
omacom:quattrofrom
harshithnadig:fix/kp-enter-bindings

Conversation

@harshithnadig

Copy link
Copy Markdown

Problem

In #9030, certain laptops (and full-size keyboards with numpads) emit KP_Enter (evdev KEY_KPENTER 96, keysym 0xff8d) for their Enter key rather than Return.

Because Omarchy's application and capture bindings in default/hypr/bindings/ were only declared for RETURN, shortcuts like SUPER + Enter (Terminal), SUPER + SHIFT + Enter (Browser), SUPER + ALT + Enter (Tmux), and SUPER + CTRL + Enter (Herdr) never matched.

Solution

Mirror the RETURN keybindings to KP_Enter in:

  • default/hypr/bindings/applications.lua (Terminal, Browser, Tmux, Herdr)
  • default/hypr/bindings/utilities.lua (Slurp region capture overlay)

Fixes #9030

Keyboards on certain laptops (and external numpads) emit KP_Enter (keysym 0xff8d)
for their Enter key rather than Return. Because Omarchy application bindings
in 'applications.lua' and capture bindings in 'utilities.lua' were only bound
to 'RETURN', pressing Enter on affected keyboards did not match any shortcuts.

Mirror 'RETURN' bindings to 'KP_Enter' across application launchers and region
capture overlay.

Fixes omacom#9030
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Default Enter keybindings never match on keyboards that emit KP_Enter

1 participant