From 9c331c45a7e92eef151efa3e57b8c1df71295e4a Mon Sep 17 00:00:00 2001 From: Farmelle Date: Thu, 9 Apr 2015 00:22:36 +0100 Subject: [PATCH] Modified keymap to include keypad mappings when not numlock isn't on --- external/scintilla/src/KeyMap.cxx | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/external/scintilla/src/KeyMap.cxx b/external/scintilla/src/KeyMap.cxx index cb6f2b8d..c2c0b7a1 100644 --- a/external/scintilla/src/KeyMap.cxx +++ b/external/scintilla/src/KeyMap.cxx @@ -155,6 +155,27 @@ const KeyToCommand KeyMap::MapDefault[] = { {'D', SCI_CTRL, SCI_SELECTIONDUPLICATE}, {'U', SCI_CTRL, SCI_LOWERCASE}, {'U', SCI_CSHIFT, SCI_UPPERCASE}, + + // Extra defines for keypad + { 0x100, SCI_NORM, SCI_EDITTOGGLEOVERTYPE}, + { 0x101, SCI_NORM, SCI_LINEEND}, + { 0x101, SCI_SHIFT, SCI_LINEENDEXTEND}, + { 0x102, SCI_NORM, SCI_LINEDOWN}, + { 0x102, SCI_SHIFT, SCI_LINEDOWNEXTEND}, + { 0x103, SCI_NORM, SCI_PAGEDOWN}, + { 0x103, SCI_SHIFT, SCI_PAGEDOWNEXTEND}, + { 0x104, SCI_NORM, SCI_CHARLEFT}, + { 0x104, SCI_SHIFT, SCI_CHARLEFTEXTEND}, + { 0x106, SCI_NORM, SCI_CHARRIGHT}, + { 0x106, SCI_SHIFT, SCI_CHARRIGHTEXTEND}, + { 0x107, SCI_NORM, SCI_HOME}, + { 0x107, SCI_SHIFT, SCI_HOMEEXTEND}, + { 0x108, SCI_NORM, SCI_LINEUP}, + { 0x108, SCI_SHIFT, SCI_LINEUPEXTEND}, + { 0x109, SCI_NORM, SCI_PAGEUP}, + { 0x109, SCI_SHIFT, SCI_PAGEUPEXTEND}, + { 0x10a, SCI_NORM, SCI_CLEAR}, + {0,0,0}, };