10

I prefer to use the cursor keys on the numeric keypad with Num Lock turned off. This is fine most of the time but in Eclipse it's causing problems with some of the shortcuts, e.g. Alt+Up/Down to move lines around and Alt+Left to navigate backwards -- both of these stick in a symbol (e.g. ☻ for Alt+Down) after performing the shortcut function.

As a last resort I could either (a) reassign the shortcut keys (don't want to do this as would prefer to use/learn the standard ones) or (b) use the mini cursor keys (not keen on this as prefer to have PgUp/PgDn/Home/End underneath my fingers without jumping my hand around).

Is it possible to turn off the Alt+numpad shortcut for inserting ASCII characters? (I'm using Windows 7.)

0

2 Answers 2

7

You can use Autohotkey to remap, e.g., NumpadLeft to Left, which should remove any of the Alt + Numpad side-effects.

; For Alt + key (with NumLock OFF)
NumpadIns::Ins
NumpadEnd::End
NumpadDown::Down
NumpadPgDn::PgDn
NumpadLeft::Left
NumpadClear::
NumpadRight::Right
NumpadHome::Home
NumpadUp::Up
NumpadPgUp::PgUp
NumpadDel::Del
1
  • This allowed me to do things like use "Alt-Left/Right" as "Delete Word Left/Right" is VS Code, without also introducing junk characters into the editor. This is a great solution as long as you don't require non-num-pad and num-pad keys to be distinguishable. It also still allows the use of the Alt-n-n-n character generation, simply by turning NumLock on before Alt-n-n-n-ing what you need.
    – BRebey
    Commented Oct 1, 2021 at 17:43
0

I think AutoHotkey can solve the problem, have a look here.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .