Remove and ReAdd KeyboardShortcut on Filter Input string#363
Remove and ReAdd KeyboardShortcut on Filter Input string#363fantaisie-software merged 3 commits intofantaisie-software:develfrom
Conversation
On Filter Input string, remove the 4 main shortcuts (Ctrl+A, Ctrl+C, Ctrl+X, Ctrl+V) on Focus and recreate them on LostFocus. For Filter Input string in UserInterface, ProjectPanel and ProcedureBrowser
|
May be it can be done in generic way when the scintilla component loose/gain its focus ? |
|
Yeah, that would be great, but I'm not sure where to do that for the Scintilla gadget. |
|
I took a quick look for the generic way but I don't know how to do it easily, without Focus/LostFocus events on Scintilla Gadget or on the Source Container Gadget. |
|
I tried with the code below, but without success, I'm not receiving any Focus/LostFocus events! |
|
It works with the right values, I'll add it to this PR and remove the previous changes made on String (Lost)Focus events |
Generic-Way on the ScintillaGadget using Set(Kill)Focus events to remove or restaure the main keyboard and get the standard behavior for StringGadget text
|
Done for the "Generic-Way" on the ScintillaGadget using Set(Kill)Focus events to remove or restaure the main keyboard shortcuts and get the standard behavior for StringGadget text |
|
Looks good! Thanks for this useful patch |
|
|
|
Yes, you're right, I completely missed it. Grrr However, even though the modification is simple, I don't have a Mac around, so I'm a bit hesitant to do it without testing it. ScintillaHighlighting.pb |
|
I've added it , but since I don't have a Mac, I'll let Fred test it, approve it ps: Thanks Fred for #SCN_FOCUSIN, #SCN_FOCUSOUT, already defined |
For the Filter Input String in UserInterface, ProjectPanel and ProcedureBrowser, remove the 4 main shortcuts (Ctrl+A, Ctrl+C, Ctrl+X, Ctrl+V) on Focus and recreate them on LostFocus.