![]() |
#1 |
Enthusiast
![]() Posts: 46
Karma: 10
Join Date: Jul 2023
Device: none
|
Bug with InsertSpecialCharacter and Saved Searches
Start Sigil
Tools/Saved Searches Add Entry Double click in Find column to open edit Insert/Special Character click on a special character it goes into the code window this is with Windows 11 and Sigil 2.2.1 I think this is part of a general problem where characters from Insert Special Character are handled differently from characters from the keyboard. |
![]() |
![]() |
![]() |
#2 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,018
Karma: 5449552
Join Date: Nov 2009
Device: many
|
Did this ever work? I do not think SavedSearches was ever designed as a PasteTarget. You should be able to insert it into Find and Replace's Find field which is a PasteTarget and then simply use the Find Replace menu to save your current Find and Replace into Saved Searches.
Again, the widget with current focus needs to be defined as a PasteTarget (class in Sigil) or it will not get to be the target of a paste. So it is working as designed. So this is not a bug by definition. But it is inconsistent behaviour. You can of course copy that character to your clipboard and paste it anyplace. If you want the Find and Replace inside the Saved Searches editor to be a Paste Target as a new feature, I would be happy to consider it. |
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Enthusiast
![]() Posts: 46
Karma: 10
Join Date: Jul 2023
Device: none
|
Quote:
|
|
![]() |
![]() |
![]() |
#4 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,018
Karma: 5449552
Join Date: Nov 2009
Device: many
|
But as I explained earlier, the InsertSpecialCharacter dialog, grabs input focus when you select the character at that time so there is no other keyboard focus active. It is a dialog, not an input device. It is designed to paste chars into CodeView and FindReplace with one click.
|
![]() |
![]() |
![]() |
#5 | |
Enthusiast
![]() Posts: 46
Karma: 10
Join Date: Jul 2023
Device: none
|
Quote:
|
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,018
Karma: 5449552
Join Date: Nov 2009
Device: many
|
In fact trying to generate fake key events that the user did not generate is what can get your application shut down for security reasons.
No one else has expressed any interest in this given you can create and test searches in Find and Replace and then save them easily. I will take your feature request under consideration. No promises. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Saved Searches: Recursing hierarchical searches | ownedbycats | Library Management | 7 | 01-18-2021 05:33 AM |
Saved Searches? | jim3692 | Sigil | 3 | 04-26-2020 06:10 PM |
Saved searches | abecedarian | Sigil | 5 | 04-14-2017 06:48 PM |
Where are searches saved? | travger | Calibre | 2 | 08-26-2012 01:37 PM |
Bug with saved searches in 0.7.32 | dasimser | Calibre | 3 | 12-04-2010 08:22 AM |