06-28-2024, 10:21 AM | #1 |
Enthusiast
Posts: 49
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. |
06-28-2024, 11:36 AM | #2 |
Sigil Developer
Posts: 8,160
Karma: 5450818
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. |
06-28-2024, 01:19 PM | #3 | |
Enthusiast
Posts: 49
Karma: 10
Join Date: Jul 2023
Device: none
|
Quote:
|
|
06-28-2024, 02:21 PM | #4 |
Sigil Developer
Posts: 8,160
Karma: 5450818
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.
|
06-28-2024, 05:23 PM | #5 | |
Enthusiast
Posts: 49
Karma: 10
Join Date: Jul 2023
Device: none
|
Quote:
|
|
06-28-2024, 06:47 PM | #6 |
Sigil Developer
Posts: 8,160
Karma: 5450818
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. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Saved Searches: Recursing hierarchical searches | ownedbycats | Library Management | 7 | 01-18-2021 06:33 AM |
Saved Searches? | jim3692 | Sigil | 3 | 04-26-2020 07:10 PM |
Saved searches | abecedarian | Sigil | 5 | 04-14-2017 07:48 PM |
Where are searches saved? | travger | Calibre | 2 | 08-26-2012 02:37 PM |
Bug with saved searches in 0.7.32 | dasimser | Calibre | 3 | 12-04-2010 09:22 AM |