Thread: Possible bug?
View Single Post
Old 09-15-2021, 09:02 PM   #123
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,870
Karma: 6120478
Join Date: Nov 2009
Device: many
So your Ctrl+Shift+6 now works

Your Ctrl+Shift+0 is being captured by your operating system for something (Zoom in or increase the volume or something) and that is why it never reaches Qt and Sigil.

Your Ctrl+Shift+` is a dead key (diacritic) which should create the ^. Dead keys are a known problem that we are working on. I am not sure how to treat them since they should be followed by another key to form a compound character.

And unless I am confused, I think BeckyEbook just explained that AltGr should really not be used in Shortcuts since it is used to form a character. With AltGR enabled it frees up Ctrl+Alt sequences to create more shortcuts since they are no longer being mapped to AltGr.

BeckyEbook is that correct?

The next issue is more basic:

Case A: Should a Shortcut sequence only include the sequence of keys actually hit as defined only by the main/primary symbol on that key?

Or

Case B: Should a Shortcut sequence include the impact of the modifiers (Control,Shift, Alt, etc) being used and map the primary key to its secondary (shifted, etc) definition and use that in the key sequence.

It can be argued either way. I am not sure one is more right than another.

On macOS, Case A is most often used. I am not sure about other platforms.

But Qt seems to want to use Case B, but then we have to almost guess to see if the Shift key was needed to create that character and if so to remove the shift from the key sequence so it can actually be used.


Thank you for testing and reporting back!

Let's wait to see what others think.

Last edited by KevinH; 09-15-2021 at 09:48 PM.
KevinH is offline   Reply With Quote