-
Notifications
You must be signed in to change notification settings - Fork 496
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
Some hotkeys are not working on today's master #4149
Comments
Probably related to 48cabbc. However, the fix is no t to revert this but to handle it correct. |
Not broken on Windows only, the same problem is visible on Linux as well. |
Sloppy coding from my side anyway. Patch below should fix it, but I need some sleep now....
|
BTW: This looks like something Very Undocumented? Any ideas what this is about?
|
Hotkeys for canvas rotation, what is the problem with it? |
None, besides that that are not documented. |
I tested the above patch: This part of the code seems tricky with a lot adaptations to our various systems and also tweaks for non-qwerty-keyboards. |
Well, as long as you are ready to test a patch... |
I can of course test mainly on Win when available and happens to see a change is made. But I've no Mac and no other Linux than Debian and noting else than the qwerty keyboard. |
This is actually not so much about platforms as keyboards. Below is an updated patch which does the right thing on Linux. No reason it will behave differently on windows. However, somewhat unsure what might happen on a sufficiently odd keyboard.
|
Yes, the above patch seems to work on Win. Also the "?" key wo disturbing chart center or zoom. Good! The Mac function Pavel may test? |
I think I'll merge it as it is now. The important is that we don't break anything. We are still in an early stage, and that a feature is less than perfectly implemented should no be a reason to not merge. There is still time. And then again, when I look at this again it actually seems like the "new" code should behave better than the old. For the record, the problem faced was that pressing the Shift- key on a Nordic keyboard generates both a KeyDown event(' ') and a KeyChar event('?'). What I did was just to move the code which was triggered by KeyDown to KeyChar, thus only triggering the code when actually pressing a non-shifted ' ' key. |
Done |
I note that the "About" icon in toolbar uses "?" Where Help is located, so is it intentional to use a keyboard shortcut "?" to get to the manual? Is this consistant enough? |
Now after the latest merge all seems fine on Win. |
On macOS 14.6.1 (kbd Spanish) the usual short cuts do work. |
Probably something about the keyboard. Could you please try patch below, press the '?' key and report back?'
|
Sorry, but no way for me to build on that environment...... |
OK. But out of curiosity: How did you test 2b0017c if you were not able to build? |
Using the package from https://cloudsmith.io/~david-register/repos/opencpn-unstable/packages/ I will handle this after I unpack the box with the Mac in the new house... |
Describe the bug
Today's master. Several hotkeys are not working
To Reproduce
Steps to reproduce the behavior:
Desktop (please complete the following information if applicable):
The text was updated successfully, but these errors were encountered: