Detecting Escape key

Jean Lalonde <[email protected]> Sat, 9 Nov 2024 12:37:46 -0800 (PST)
Newsgroups gmane.comp.lib.scintilla.devel
Message-ID <[email protected]>
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.

I tried assigning the Escape key (SCK_ESCAPE) to a command (SCI_LINEDOWN in 
my test -- this would be replaced by another unused or custom command) and 
check if the notify function if an event was triggered when user hit 
Escape. If yes, I could then execute commands to hide the window.

I can see that the key assignment SCI_ASSIGNCMDKEY worked because the line 
down command is executed when user hit Escape. But I can't trap it in the 
Notify function.

Is this a correct approach? Is there another approach to detect a key 
press? 

Thanks for your help.

-- 
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/5296df60-e3bf-4ed3-96bb-3df001cdbe58n%40googlegroups.com.