Recent

Author Topic: Give new name to left-Backslash key on 102 keys keyboard  (Read 397 times)

Alextp

  • Hero Member
  • *****
  • Posts: 1153
    • UVviewsoft
Give new name to left-Backslash key on 102 keys keyboard
« 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.  

x2nie

  • Sr. Member
  • ****
  • Posts: 487
  • Impossible=I don't know the way
    • impossible is nothing - www.x2nie.com
Re: Give new name to left-Backslash key on 102 keys keyboard
« Reply #1 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.
When you were logged in, you can see attachments.
Lazarus Trunk @ Windows7 64bit, XP 32bit, Debian under VirtualMachine

PascalDragon

  • Hero Member
  • *****
  • Posts: 2429
  • Compiler Developer
Re: Give new name to left-Backslash key on 102 keys keyboard
« Reply #2 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.


 

TinyPortal © 2005-2018