Skip to content

Add a layout-aware search shortcut option - #1048

Draft
Nameless-Monster-Nerd wants to merge 1 commit into
glanceapp:mainfrom
Nameless-Monster-Nerd:codex/add-layout-aware-search-shortcut
Draft

Add a layout-aware search shortcut option#1048
Nameless-Monster-Nerd wants to merge 1 commit into
glanceapp:mainfrom
Nameless-Monster-Nerd:codex/add-layout-aware-search-shortcut

Conversation

@Nameless-Monster-Nerd

Copy link
Copy Markdown

Fixes #1003.

The search widget now supports use-layout: true. When enabled, the S shortcut follows the active keyboard layout through KeyboardEvent.key. The default remains the physical KeyS position through KeyboardEvent.code, preserving the behavior requested in #719.

The new option is passed through the rendered widget data and documented with its default and behavior.

Tests:

  • go test ./internal/glance -run TestSearchWidgetRendersUseLayout -count=1
  • go test ./internal/glance -count=1
  • go vet ./internal/glance
  • node --check internal/glance/static/js/page.js
  • git diff --check

AI disclosure: I used Codex to help investigate, implement, and test this change. I reviewed the final diff and test results.

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.

Search shortcut (S key) does not respect keyboard layout

1 participant