|
|
#106 |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,069
Karma: 6361556
Join Date: Nov 2009
Device: many
|
@BeckyEbook,
I just pushed to master trying your MapVk approach. According to the github site, it did compile successfully. When you get a chance please run some tests using that approach and see if it works and post the debug output. If it works well for you (or can be made to) I can fire up a deploy build for RbnJrg to try to see if it helps on his keyboard layout. Thanks |
|
|
|
|
|
#107 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,876
Karma: 8821117
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Well, this is the text of the log file:
Code:
Warning: Unable to open default EUDC font: "EUDC.TTE" Debug: regenerating tag list Debug: key(): "94" '^' Debug: text(): "\u001E" Debug: nativeVirtualKey(): 54 Debug: letter: "^" Debug: modifiers: QFlags<Qt::KeyboardModifier>(ShiftModifier|ControlModifier) Debug: Debug: key(): "94" '^' Debug: text(): "" Debug: nativeVirtualKey(): 186 Debug: letter: "^" Debug: modifiers: QFlags<Qt::KeyboardModifier>(ShiftModifier|ControlModifier) Debug: |
|
|
|
|
|
#108 |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,069
Karma: 6361556
Join Date: Nov 2009
Device: many
|
Thanks RbnJrg.
Wow! It appears your keyboard is doing really strange things that even Qt is not grokking. It is seeing that char sequence as ending with a ^ no matter what. And u001E is an ascii control character record separator(RS) and I have no idea where that comes from. Interestingly, the nativeVirtualKey values show you are hitting different keys on the keyboard but Qt thinks it both are the ^ key. The worst thing is on a standard US Keyboard Shift+6 is a ^ so something in the Qt code is ignoring your keyboard layout. This is very strange. Last edited by KevinH; 09-15-2021 at 07:26 PM. |
|
|
|
|
|
#109 |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 899
Karma: 3501166
Join Date: Jan 2017
Location: Poland
Device: Various
|
Yes!
I checked on several keyboard layouts (Polish, German, Spanish) and it worked fine everywhere! In Shortcuts window I have no junk, no diacritics or unicode characters, but only keyboard accessible ASCII characters and such "clean" shortcuts writes nicely to sigil.ini After enabling AltGr it gets even better – it works exactly as I imagined it and as described a few posts earlier. I can have AltGr+Q=@ on the German keyboard layout and at the same time a working shortcut Ctrl+Alt+Q that calls some function in Sigil. I include debug log with tests for combinations with 1-5 and different modifiers (AltGr on and off). I hope it will also work well for @RbnJrg. |
|
|
|
|
|
#110 |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,069
Karma: 6361556
Join Date: Nov 2009
Device: many
|
@BeckyEbook, I will add some debug output and add deploy to make a new test build for RbnJrg that will hopefully work better.
|
|
|
|
|
|
#111 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,848
Karma: 207000000
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Is the new code viable on Windows 7/8, as well as 10?
|
|
|
|
|
|
#112 |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,069
Karma: 6361556
Join Date: Nov 2009
Device: many
|
Okay I just pushed some cleanup for debug output and added deploy so in about 10 or 15 minutes we should have a new test build for RbnJrg that will hopefully fix the Ctrl+SHIFT+6 and related nonsense.
|
|
|
|
|
|
#113 |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,069
Karma: 6361556
Join Date: Nov 2009
Device: many
|
|
|
|
|
|
|
#114 |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,069
Karma: 6361556
Join Date: Nov 2009
Device: many
|
It appears to require Windows 2000 pro or later based on this:
https://docs.microsoft.com/en-us/win...mapvirtualkeyw Is that before or after Windows 7? |
|
|
|
|
|
#115 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,848
Karma: 207000000
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
2K was before 7. We're good.
|
|
|
|
|
|
#116 |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,069
Karma: 6361556
Join Date: Nov 2009
Device: many
|
@RbnJrg,
Please check your pm, I sent you a new download link to a hopefully better test build. When you get a channce please re-run your Ctrl+Shift+ ... test cases and share the debug output here. Thank you! |
|
|
|
|
|
#117 |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,069
Karma: 6361556
Join Date: Nov 2009
Device: many
|
|
|
|
|
|
|
#118 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,848
Karma: 207000000
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
We even had ME, XP, and Vista as a cushion.
|
|
|
|
|
|
#119 |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 899
Karma: 3501166
Join Date: Jan 2017
Location: Poland
Device: Various
|
I praised too quickly.
I built the new version faster than deploy and started testing. I found an exception that causes a problem. If the keyboard layout uses a dead key, then we do see garbage. Fortunately, this keyboard shortcut is not saved in sigil.ini. In my keyboard layout, this key is the one with the tilde (above the tab and below the Escape). When you press it with any modifier, garbage appears. This is an extremely rare situation, but it shows that the topic of keyboard shortcuts is not simple, and that Qt does not make life easier for programmers. Code:
Debug: regenerating tag list Debug: key(): "126" '~' Debug: text(): "" Debug: nativeVirtualKey(): 192 Debug: letter: "~" Debug: modifiers: QFlags<Qt::KeyboardModifier>(AltModifier) Debug: Debug: MapVK_VK_TO_CHAR: "2147483744" '`' |
|
|
|
|
|
#120 | |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,069
Karma: 6361556
Join Date: Nov 2009
Device: many
|
According to the MapVK call docs, it sets the high bit of the result if a dead key, so we can screen them out (I think).
Quote:
Last edited by KevinH; 09-15-2021 at 08:09 PM. |
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [BUG] - M96 out of memory - [BUG] | Alf77 | Onyx Boox | 5 | 02-05-2015 11:47 AM |
| Another bug that I wonder if others have seen | PeterT | Kobo Reader | 16 | 06-08-2013 09:48 PM |
| DR800 Help, I've got a bug!! A bug on my screen!! | Franky | iRex | 4 | 06-21-2011 11:45 AM |
| Embedded font bug or CSS bug in ADE | JSWolf | ePub | 10 | 06-11-2011 02:34 PM |
| PRS-505 bug or eBookLib bug? | porkupan | Sony Reader | 3 | 10-07-2007 10:44 PM |