Hello @RaiKoHoff ,
Referring to issue https://github.com/rizonesoft/Notepad3/issues/2448#issuecomment-647104087, I suggest that Notepad3 can also execute "Alt+nnn" (Decimal input) without having to activate NumLock. 馃
Many text editors work like this:
and this list from @chandra9000 issue,
Yes, it would be great, so I haven't been going crazy about this :-D
Some Websites (e.g. https://www.alt-codes.net/) stated:
To type a character using its Alt Code value,
Num-Lockshould be on. Otherwise unwanted results may occur.
I found the "problem" with the NUMLOCK OFF in Notepad3:
If NUMLOCK is ON, the Numkeypad is mapped to numbers, Alt+decimal-code is working fine.
If NUMLOCK is OFF, the Numkeypad is mapped to other virtual keys:
0 => VK_INSERT
1 => VK_END
2 => VK_DOWN
3 => VK_NEXT
4 => VK_LEFT
5 => VK_CLEAR
6 => VK_RIGHT
7 => VK_HOME
8 => VK_UP
9 => VK_PRIOR
If the Alt+VK_XXX key combination is not used as ShortCuts within the editor, the VKs are mapped to numbers,
the Alt+decimal-code input is working fine.
Unfortunately, some Alt+VK_XXXs key-bindings are mapped as ShortCuts (intercepted) in Notepad3:
Alt+VK_DOWN(2) is used to move current line down. (_this won't be changed_)Alt+VK_UP(8) is used to move current line up. (_this won't be changed_)Alt+VK_LEFT(4) is used to collapse a fold.Alt+VK_RIGHT(6) is used to expand a fold.So to enter the Alt+decimal-code the Numkeypad must be configured (NUMLOCK ON) to send numbers not other VKs.
If
NUMLOCKis ON, the Numkeypad is mapped to numbers,Alt+decimal-codeis working fine.
So to enter the
Alt+decimal-codethe Numkeypad must be configured (NUMLOCKON) to send numbers not other VKs.
OK, I understand, we will stay as it is currently configured ! 馃憤 馃槂
Most helpful comment
I found the "problem" with the
NUMLOCKOFF in Notepad3:If
NUMLOCKis ON, the Numkeypad is mapped to numbers,Alt+decimal-codeis working fine.If
NUMLOCKis OFF, the Numkeypad is mapped to other virtual keys:If the
Alt+VK_XXXkey combination is not used asShortCutswithin the editor, the VKs are mapped to numbers,the
Alt+decimal-codeinput is working fine.Unfortunately, some
Alt+VK_XXXskey-bindings are mapped asShortCuts(intercepted) in Notepad3:Alt+VK_DOWN(2)is used to move current line down. (_this won't be changed_)Alt+VK_UP(8)is used to move current line up. (_this won't be changed_)Alt+VK_LEFT(4)is used to collapse a fold.Alt+VK_RIGHT(6)is used to expand a fold.So to enter the
Alt+decimal-codethe Numkeypad must be configured (NUMLOCKON) to send numbers not other VKs.