Michal Bukovjan wrote 19 lines
Mattias Gaertner wrote:
>On Wed, 22 Jan 2003 23:25:18 +0100
>olivier Guilbaud wrote:
[... snip ...]
>
>>3�) Request [CTRL]+[SHIFT]+n with n = 0..9 for toggle Bookmark n
>> and [CTRL]+n for goto bookmark (like DELPHI it is hard separer
>> certain abitudes :o) )
>
>[CTRL]+[SHIFT]+n are somewhat special under gtk. The gtk-interface needs
>only a good mapping from the gtk keys to the VK_ key constants. Maybe
>someone can lookup the rules for these keys and give me hint.
Looks like we need to fill in some constants in gtkproc.int/GetGTKKeyInfo,
but I am not sure - should we map, for example GDK_DOLLAR (which is
Shift+4) to VK_4? Or some other VK_ code not present in lcltype?
This is where I stopped implementing VK_ codes since I didn't know how to handle these. Ik you press a 4 you'll get a VK_4. On an US keyboard shift+4 is a $, but that isn't the case on all keyboards (isn't it a pound on english), so in order to solve this you need the keyboard layout.
Other ideas were to introduce extra VK_ codes to map special chars like $ (VK_DOLLAR)
For key combinations with ctrl and/or shift and a number is gets difficult.
And then I won't talk about special chars like `~-_=+[{]};:'",<.>/? etc.
What VK_ code is returned when you press Shift+4 on Windows?
Marc