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

Increment/Decrement hotkeys don't work with +/- keys on numeric keypad #871

Open
dripton opened this issue Jul 29, 2024 · 4 comments
Open

Comments

@dripton
Copy link
Contributor

dripton commented Jul 29, 2024

The ctrl-plus and ctrl-minus hotkeys work fine to increment or decrement trait levels work fine for me using the +/- keys on the top row of the main keyboard, but don't work for the +/- keys on the numeric keypad. This is true whether the keypad's Num Lock state is on or off. This is on a standard 101-key US PC keyboard, on Linux.

Obviously not a big deal as I can just use the ones on the main keyboard, but it's kind of a surprising bug, as I don't think GCS should care which plus or minus key I use.

@richardwilkes
Copy link
Owner

Yeah, that takes extra effort to make work, but is quite doable. Just hasn't been a priority.

@richardwilkes
Copy link
Owner

Hmm... I just realized this isn't really solvable the way I had originally thought, thanks to the fact that I allow you do redefine the key mappings -- and only one combo can be assigned. What you're asking for here (I assume) is for two different combos to trigger the same menu item: CTRL-PLUS as well as CTRL-KEYPAD-PLUS. If you always want to use the keypad, you could reassign the menu item to that, of course, but then the existing one won't trigger it.

@dripton
Copy link
Contributor Author

dripton commented Aug 2, 2024

I think the trick is working at the level of logical keys rather than scan codes, so both of the plus keys are the same key, but I don't know if that's possible cross-platform. It's not a huge deal in any case; just reported it because it was slightly annoying and might confuse someone.

@richardwilkes
Copy link
Owner

It isn't with what I have access to currently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants