09-06-2021, 11:51 AM | #1 |
Wizard
Posts: 1,563
Karma: 7043711
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Possible bug?
I made a clip to comment lines in css stylesheets. The clip is:
Code:
/* \1 */ By the way, is there any way that in the Keyboard Shortcut dialog, instead of "Clip 1, Clip 10, ..., etc., etc.", it appears the name of the clips? |
09-06-2021, 12:29 PM | #2 |
Grand Sorcerer
Posts: 27,580
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I'm assuming you have something highlighted when you use the shortcut?
It works for me. Both the original Crtl+Alt+1, and Ctrl+Shift+1 (which is actually Ctrl+! for all practical purposes on my machine/keyboard. Perhaps that shortcut is being used by some system-level process on your machine? |
Advert | |
|
09-06-2021, 12:31 PM | #3 |
Well trained by Cats
Posts: 29,901
Karma: 55267620
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
I have the same >>>Saved SEARCH <<< and it works great on the highlighted text.
(I did not assign a hot key) |
09-06-2021, 12:45 PM | #4 |
Grand Sorcerer
Posts: 27,580
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Can you verify that the clip is working in general (from the clip bar and not via the shortcut)?
|
09-06-2021, 12:50 PM | #5 |
Sigil Developer
Posts: 7,689
Karma: 5444398
Join Date: Nov 2009
Device: many
|
Also works just fine for me. Perhaps something else has been assigned that shortcut key sequence, as DiapDealer suggested?
|
Advert | |
|
09-06-2021, 01:29 PM | #6 | ||
Wizard
Posts: 1,563
Karma: 7043711
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
Quote:
And regarding my other question, that in the Keyboard Shortcut dialog, instead of "Clip 1, Clip 10, ..., etc., etc.", it appears the name of the clips. Maybe it can be possible to use the Sigil_clip.ini to replace names in the Shortcut dialog. |
||
09-06-2021, 01:32 PM | #7 |
Guru
Posts: 703
Karma: 2180740
Join Date: Jan 2017
Location: Poland
Device: Misc
|
It doesn't work for me (probably for years), but I know a workaround.
When in Preferences> Keyboard Shortcuts I can see Ctrl+Shift+! then I close Sigil, manually edit the sigil.ini file, find such a wrong entry and correct it on Ctrl+Shift+1, save the sigil.ini file and it's OK. IMHO is not strictly a Sigil error, but a Qt error. |
09-06-2021, 01:36 PM | #8 |
Wizard
Posts: 1,563
Karma: 7043711
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Yes, the clip is working. In fact, now I have assigned the shortcut "Ctrl+*" and works fine. The problem is that I can't assign any secuence based on Ctrl+Shift+Number (Ctrl+Number works ok) or Ctrl+Right/Left, Ctrl+Shift+Right/Left. No problem with others combinations. But as I said, if the issue can't be duplicated, then must be something with my system or keyboard.
|
09-06-2021, 01:39 PM | #9 |
Sigil Developer
Posts: 7,689
Karma: 5444398
Join Date: Nov 2009
Device: many
|
Is the '!' the shift of the key with '1' on it? Why would Qt detect the numeral 1 as an !?
Is this a Windows Qt bug or keyboard specific? Last edited by KevinH; 09-06-2021 at 01:44 PM. |
09-06-2021, 01:45 PM | #10 | |
Wizard
Posts: 1,563
Karma: 7043711
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
|
|
09-06-2021, 01:49 PM | #11 | |
Guru
Posts: 703
Karma: 2180740
Join Date: Jan 2017
Location: Poland
Device: Misc
|
Quote:
I have exactly the same symptoms as @RbnJrg, but due to my Polish keyboard layout, I am used to all kinds of keyboard shortcuts problems. Over the years, I've seen a few submissions on the Qt forum, but they probably haven't received too much priority. Last edited by BeckyEbook; 09-06-2021 at 01:59 PM. Reason: Image |
|
09-06-2021, 01:55 PM | #12 |
Wizard
Posts: 1,563
Karma: 7043711
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
I don't know. I think that in all keyboards when you have to type the symbol "!", you have to press "Shift+1". So I believe that Qt must think that we are pressing the combination Ctrl+!. I say that because if in Sigil.ini, I write as a shortcut "Ctrl+!" or "Ctrl+Shift+1", both ways work. But not "Ctrl+Shift+!". But when in the shortcut dialog we press "Ctrl+Shift+1", there is written "Ctrl+Shift+!", the combination that is not working. So I don't know where is the origen of the issue.
|
09-06-2021, 02:23 PM | #13 | |
Bibliophagist
Posts: 36,183
Karma: 145735366
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
|
|
09-06-2021, 02:31 PM | #14 |
Sigil Developer
Posts: 7,689
Karma: 5444398
Join Date: Nov 2009
Device: many
|
So as DiapDealer has already stated, Ctrl+Shift+1 must equate to Ctrl+! if the '!' is accessed via the shift of the 1.
So not all possible combinations of key sequences can be assigned as they are in fact not unique. In our Sigil Preferences KeySequence routine we only have access to the modifiers used and the resulting text produced. So we detect Ctrl+Shift+1 as Ctrl+Shift+! since it detects the modifiers and the text function returns '!' not '1'. We would have to have access to a keyboards mapping / layout to handle this properly and write it out as Ctrl+! or Ctrl+Shift+1 BUT not as Ctrl+Shift+! I will look to see if raw scan codes can be used somehow. |
09-06-2021, 02:50 PM | #15 |
Wizard
Posts: 1,563
Karma: 7043711
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Yes, but also you should do the same not only with the case of Ctrl+Shift+! but also with Ctrl+Shift+", Ctrl+Shift+$, Ctrl+Shift+%, Ctrl+Shift+&, etc., etc. If we were able to edit the imput in the shortcut dialog by ourself (so far, is not allowed), the issue is solved. It would a piece of cake for us to change Ctrl+Shift+! into Ctrl+Shift+1 (but we can't overwrite the "!" with "1").
|
|
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 |