Thread: Possible bug?
View Single Post
Old 09-09-2021, 02:42 PM   #45
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,901
Karma: 6120478
Join Date: Nov 2009
Device: many
The first link you sent is the simplest and it appears to use the Windows only approach you mentioned earlier.

But I am confused ... did calibre's code work correctly and you just did not "like" the Shortcut shown, or did it actually fail with some key sequences and that is why you did not "like" the Shortcut shown?

And what do you mean by "when in the field with the shortcut"?

Do you mean the "Ctrl+!" output shown? If so, that is not meant to be an input field to be edited. Entering other keys there will create issues. For example the del key or backspace will erase the key sequence completely. It is not meant for editing directly but to display the key sequence entered.

Or do you mean the table entry itself or when editing the ini?




Quote:
Originally Posted by BeckyEbook View Post
@KevinH:

I built a new Sigil and I have mixed feelings.

1. I don't like (no offense) the way Calibre does this. For me, Ctrl+Shift+1 is Ctrl+Shift+1, not Ctrl+!
2. In the current master version, Shift is omitted, so I can see Ctrl+! or after pressing Alt+Shift+2 I can see Alt+@
3. When in the field with the shortcut I put a Polish (and probably also a different one) diacritic, I see some unreadable double-byte sequence of characters.

I would suggest looking at another solution that shows the shortcuts in a more friendly way.

That's why I checked out two other GPL 3.0 projects on Github and maybe this code will help:

https://github.com/hluk/CopyQ/blob/6...tform.cpp#L263

https://github.com/QYQYMBA/ChiyaProj...indow.cpp#L148

In these applications, the Windows keyboard shortcuts display values Ctrl+Shift+1 (not Ctrl+!).

Becky
KevinH is offline   Reply With Quote