Notepad3: Executing "Alt+nnn" (Decimal input) without having to activate NumLock.

Created on 21 Jun 2020  路  4Comments  路  Source: rizonesoft/Notepad3

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:

  • MS VScode
  • SciTE
  • Notepad++
  • Notepad2-mod
  • Notepad2
  • Notepad2e

and this list from @chandra9000 issue,

  • EditPad Lite
  • BDV Notepad
  • NoteTab Light
  • Notepad (native from Windows 10)
  • Writing edit or memo fields in web pages (for example, right here just now, if I press Alt+1,2,6 I get ~, etc).
won't change works as designed

Most helpful comment

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.

All 4 comments

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-Lock should 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 NUMLOCK is ON, the Numkeypad is mapped to numbers, Alt+decimal-code is working fine.

So to enter the Alt+decimal-code the Numkeypad must be configured (NUMLOCK ON) to send numbers not other VKs.

OK, I understand, we will stay as it is currently configured ! 馃憤 馃槂

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bravo-hero picture bravo-hero  路  3Comments

blackcrack picture blackcrack  路  3Comments

craigo- picture craigo-  路  4Comments

RaffaeleBianc0 picture RaffaeleBianc0  路  3Comments

craigo- picture craigo-  路  3Comments