Re: Problem with using ALT keys and/or CTRL keys with wxEuphoria
- Posted by Bhupen1277 Apr 29, 2019
- 1426 views
Also I would prefer to press ALT character once and get the real character pressed after it (rather than during the key press) to change. I will work on that.
You have to use wxEVT_KEY_DOWN and wxEVT_KEY_UP to detect the movement of these keys. The wxEVT_CHAR event is only for printable characters (hence "char" event).
https://docs.wxwidgets.org/2.8/wx_wxkeyevent.html#wxkeyevent
-Greg
Thanks a lot, ghaberek, for the information. I changed the exw slightly for the Ctrl down.
-- keyIs1 = keyIs1 + 128 - this line changed keyIs1 = keyIs1 + 128 + 64
Now the Ctrl down displays correctly in the test file Eutest.ttf I have the changed version and a jpg showing the result in this URL:
http://www.mediafire.com/folder/7rnx1ofa2j862/Catch-Keys
The slightly squashed results in the ALT row are a result of the poor quality character in the test ttf. The extra character at beginning f line 2,3,4 is because I have not yet removed the printing of Enter character.