View Single Post
Old 12-20-2019, 03:11 PM   #48
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,951
Karma: 6361444
Join Date: Nov 2009
Device: many
Okay, I have modified the source code of Sigil to print qDebug() output that shows the keys actually being received in the ShortCut Manager Preferences and it also shows the native scan code, native modifiers, and native virtual key values. I have pushed this to Sigil master.

@DiapDealer, since you can duplicate this issue when using the US International keyboard layout, perhaps you could log the debug output from testing the problem under both the US and US International keyboards so we can compare the output for the same key sequence that does not seem to work.

ps. I have tested this on macOS and it seems to record the modifiers exactly as stated in the QKeyEvent class documentation for macOS so I can not recreate this issue.

KevinH

Quote:
Originally Posted by Mister L View Post
I have a question about keyboard localisation and keyboard shortcuts... I'm using Sigil with the interface in english but my keyboard is french and my system language is french.

I am trying to set a keyboard shortcut for "Restructure to Sigil norm". I want to use CTRL+* since it seems like an easy to remember and conflict-free choice. But when I type that in the preferences dialogue, Sigil tells me I have typed CTRL+\ and it conflicts with Back. The * on my keyboard is not on the same key as the \ so I thought maybe in this specific case only Sigil does not recognise my keyboard locale, but in regular use it obviously does because if I am writing a regex for instance the S/R dialogue correctly enters the *. I tried switching the interface language to french and relaunching Sigil, this did not work, then I tried looking up an english language keyboard to see where is the asterisk on that one and typing the equivalent keys for * (CTRL+SHIFT+8) but then Sigil said I typed CTRL+SHIFT+\ (in fact to type \ on my keyboard I need to type ALT GR+8).

Now I am just confused...

Is this a bug? Is * forbidden in keyboard shortcuts? Am I doing something wrong?

This is what my keyboard looks like:



Thanks to anyone who can help me...
KevinH is online now   Reply With Quote