Re: Detecting Escape key

"'Neil Hodgson' via scintilla-interest" <[email protected]> Sun, 10 Nov 2024 08:52:32 +1100
Newsgroups gmane.comp.lib.scintilla.devel
Message-ID <[email protected]>
Jean Lalonde:

> I'm new to coding the Scintilla control. I had "some" success using an AutoHotkey wrapper to pass commands to the Scintilla DLL but I still have a lot to learn and understand...
> 
> How can I detect the user hit the Escape key? My goal to is to hide the editor window when user hit Escape.

   It depends on the context of this Scintilla control within your application. If its a part of the application main window (like the editing pane in SciTE) then you should include a binding for the escape key in the accelerator table, commonly configured in a resource (.rc) file. If it's in a dialog then it should close by default but there are some potential issues with WM_GETDLGCODE that may need to be addressed. Another approach is to check for keystrokes in the application's message loop.

   Neil

-- 
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/scintilla-interest/1AF6E729-6EE1-4D72-BD16-A07875CF0520%40me.com.