mirror of
https://github.com/mrgoonie/winshot.git
synced 2026-04-26 18:45:57 +03:00
[PR #65] [CLOSED] Add handling of digit and letter shortcuts by their code #79
Labels
No labels
bug
enhancement
enhancement
pull-request
question
released
released on @beta
released on @dev
released on @latest
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/winshot#79
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/mrgoonie/winshot/pull/65
Author: @hisbvdis
Created: 12/29/2025
Status: ❌ Closed
Base:
main← Head:feature/add-handling-digit-and-letter-shortcuts-by-their-code📝 Commits (1)
b9f4cceAdd handling of digit and letter shortcuts by their code📊 Changes
1 file changed (+4 additions, -3 deletions)
View changed files
📝
frontend/src/components/hotkey-input.tsx(+4 -3)📄 Description
Hello.
I'm not very experienced developer, but do you think using of
e.keycode for handling hotkeys is a good idea?So far I encountered some issues because of this.
For example, when I want to set
Ctrl+Shift+2shortcut, it is recognized as aCtrl+Shift+@and doesn't work.And other keyboard language layouts might set wrong characters.
I made a small change, that uses
e.code(note.key) to handle shortcuts.And shortcuts like
Ctrl+Shift+2started working.And I was wondering, maybe it would be better to only use
e.codein when handling hotkeys?What do you think?
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.