Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: allow search/launcher hotkeys to work while capslock is on #1567

Merged
merged 1 commit into from
Jan 18, 2023

Conversation

canadaduane
Copy link
Contributor

@canadaduane canadaduane commented Jan 15, 2023

Previously, only lower-case character codes were considered in hotkeys related to the search/launcher:

  • Ctrl+k, Ctrl+p (up)
  • Ctrl+j, Ctrl+n (down)
  • Ctrl+q (quit)

This PR allows capslock to be on (or shift held down) while pressing hotkeys, and the same expected actions will occur.

Note that this also helps clean up the numeric constants used as key codes, and replaces them with easier-to-read key names.

Other hotkeys that may be affected (and would be worth testing) include:

  • Ctrl+1 thru Ctrl+9
  • Ctrl+Tab (autocomplete)
  • Ctrl+Shift+Tab (up)
  • Escape

Fixes pop-os/launcher#102

@n3m0-22 n3m0-22 self-assigned this Jan 17, 2023
Copy link
Contributor

@n3m0-22 n3m0-22 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me the new behavior works as intended. I see no regression and all shell testing has passed. As an added benefit this also seems to allow Ctrl + J/K launcher navigation to work in Wayland as well.

shell-testing.txt

@n3m0-22 n3m0-22 merged commit 16eaeb5 into pop-os:master_jammy Jan 18, 2023
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.

Shortcuts Ctrl + J/K does not work when Caps Lock is ON
3 participants