Lazarus

Using the Lazarus IDE => General => Topic started by: Alextp on October 21, 2020, 09:19:00 pm

Title: Give new name to left-Backslash key on 102 keys keyboard
Post by: Alextp on October 21, 2020, 09:19:00 pm
https://github.com/Alexey-T/CudaText/issues/2923
User wants to use left Backslash for special action.
Key code for it: 226=$E2
ShortcutToText maps it to '\'.
Bad!

Let's map it to new name.
https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.keys?view=netcore-3.1
From this page I suggest "OemBackslash'.

Patch is easy
LCLProc.pas

This line is ok:
Code: Pascal  [Select][+][-]
  1.     '\', // 0xdc - VK_OEM_5 - Can vary by keyboard, US keyboard, the '\|' key
  2.  
This line to fix:
Code: Pascal  [Select][+][-]
  1.     '\', // 0xe2 - VK_OEM_102 - Either the angle bracket key or the backslash key on the RT 102-key keyboard
  2.  
Title: Re: Give new name to left-Backslash key on 102 keys keyboard
Post by: x2nie on October 22, 2020, 02:59:54 am
For such a name, it seem that "OemBackslash" is good for sound and to remember.
but if it is going further to more technical detail, so it went beyond out of my capability; I have no further experience with keyboard/keys stuff.


I mean that once that key is only applicable for 102 (new keyboard layout), you can give it a new name.
Title: Re: Give new name to left-Backslash key on 102 keys keyboard
Post by: PascalDragon on October 22, 2020, 09:30:17 am
This line is ok:
Code: Pascal  [Select][+][-]
  1.     '\', // 0xdc - VK_OEM_5 - Can vary by keyboard, US keyboard, the '\|' key
  2.  
This line to fix:
Code: Pascal  [Select][+][-]
  1.     '\', // 0xe2 - VK_OEM_102 - Either the angle bracket key or the backslash key on the RT 102-key keyboard
  2.  

Please report such things on the bug tracker. Here they'll simply be lost if no Lazarus devs catches it.
Title: Re: Give new name to left-Backslash key on 102 keys keyboard
Post by: Alextp on October 22, 2020, 11:41:19 am
Done
https://bugs.freepascal.org/view.php?id=37966
TinyPortal © 2005-2018