Shortcut keys and keyboard language. lazarus / 31-LCL ---------------------------------------------------------------------- taazz · 2013-07-18 10:48 How hard it would be change the shortcut key behavior and where should I look for it? I hate it that the keyboard requires to be in English mode in order for the shortcuts to work, a behavior that I find irritating at best and would like at least on windows to have it work regardless of the language the user uses for my programs. ---------------------------------------------------------------------- Avishai · 2013-07-18 10:55 I just tried CTRL-A, CTRL-C and CTRL-V on a Lazarus/Hebrew program and they worked the same as in Lazarus/English program. ---------------------------------------------------------------------- taazz · 2013-07-18 11:20 try alt+W to open the drop down menu for window. ---------------------------------------------------------------------- Avishai · 2013-07-18 11:29 I know what you are talking about and I agree it should be this way, but is not MSWindows standard behavior. I will try to help find/fix this. ---------------------------------------------------------------------- Avishai · 2013-07-18 11:42 This is only an idea, but could you handle it in the OnKeyDown event? Edit: How would you show the underlined Char that shows when you press the ALT key?  This may be the reason that some keys work and some do not. ---------------------------------------------------------------------- taazz · 2013-07-18 12:13 The idea is to translate the pressed characters to its key code which should be common (they keyboard key code) on all languages and use that instead to identify if a menu needs to be dropped down. Same logic as the Ctrl+A for select all. I'm not going to take over the entire painting procedure there shouldn't be any need for that. ---------------------------------------------------------------------- Avishai · 2013-07-18 12:18 Then I think OnKeyDown should give you what you need, or maybe I don't understand what you are trying to do. ---------------------------------------------------------------------- taazz · 2013-07-18 12:25 yeah I need to think about it a bit more too. I don't think that Onkeydown is raised when the alt key is pressed I might be wrong though. ---------------------------------------------------------------------- Avishai · 2013-07-18 12:30 I think the TShiftState has the ALT key.