Adding shift-alt mapping to standard kernel keymap

Kars de Jong (jongk@cs.utwente.nl)
Thu, 15 Oct 1998 16:44:01 +0200


Hello all,

Included is a patch for the standard kernel keymap file. This patch adds a
shift-alt modifier map, so you can type things like Meta-> and Meta-< in
Emacs using your Meta key instead of having to press ESC all the time.
It is relative to 2.1.124, but I'm sure it applies to other versions of the
kernel as well.

Kars.
P.S. I'm not on the mailing list, so please Cc: to me if you reply.

-- 
------------------------------------------------------------------------------
Kars de Jong             Signaalkamp rules the waves!       Turrican@Discworld
--------======]**-----|      jongk@cs.utwente.nl      |-----**[======---------

--- linux-2.1.124/drivers/char/defkeymap.map 1998/10/14 22:53:29 1.1 +++ linux-2.1.124/drivers/char/defkeymap.map 1998/10/14 23:07:17 @@ -1,7 +1,7 @@ -# Default kernel keymap. This uses 7 modifier combinations. -keymaps 0-2,4-5,8,12 +# Default kernel keymap. This uses 8 modifier combinations. +keymaps 0-2,4-5,8-9,12 # Change the above line into -# keymaps 0-2,4-6,8,12 +# keymaps 0-2,4-6,8-9,12 # in case you want the entries # altgr control keycode 83 = Boot # altgr control keycode 111 = Boot @@ -15,38 +15,50 @@ alt keycode 1 = Meta_Escape keycode 2 = one exclam alt keycode 2 = Meta_one + shift alt keycode 2 = Meta_exclam keycode 3 = two at at control keycode 3 = nul shift control keycode 3 = nul alt keycode 3 = Meta_two + shift alt keycode 3 = Meta_at keycode 4 = three numbersign control keycode 4 = Escape alt keycode 4 = Meta_three + shift alt keycode 4 = Meta_numbersign keycode 5 = four dollar dollar control keycode 5 = Control_backslash alt keycode 5 = Meta_four + shift alt keycode 5 = Meta_dollar keycode 6 = five percent control keycode 6 = Control_bracketright alt keycode 6 = Meta_five + shift alt keycode 6 = Meta_percent keycode 7 = six asciicircum control keycode 7 = Control_asciicircum alt keycode 7 = Meta_six + shift alt keycode 7 = Meta_asciicircum keycode 8 = seven ampersand braceleft control keycode 8 = Control_underscore alt keycode 8 = Meta_seven + shift alt keycode 8 = Meta_ampersand keycode 9 = eight asterisk bracketleft control keycode 9 = Delete alt keycode 9 = Meta_eight + shift alt keycode 9 = Meta_asterisk keycode 10 = nine parenleft bracketright alt keycode 10 = Meta_nine + shift alt keycode 10 = Meta_parenleft keycode 11 = zero parenright braceright alt keycode 11 = Meta_zero + shift alt keycode 11 = Meta_parenright keycode 12 = minus underscore backslash control keycode 12 = Control_underscore shift control keycode 12 = Control_underscore alt keycode 12 = Meta_minus + shift alt keycode 12 = Meta_underscore keycode 13 = equal plus alt keycode 13 = Meta_equal + shift alt keycode 13 = Meta_plus keycode 14 = Delete Delete control keycode 14 = BackSpace alt keycode 14 = Meta_Delete @@ -66,9 +78,11 @@ keycode 26 = bracketleft braceleft control keycode 26 = Escape alt keycode 26 = Meta_bracketleft + shift alt keycode 26 = Meta_braceleft keycode 27 = bracketright braceright asciitilde control keycode 27 = Control_bracketright alt keycode 27 = Meta_bracketright + shift alt keycode 27 = Meta_braceright keycode 28 = Return alt keycode 28 = Meta_Control_m keycode 29 = Control @@ -86,16 +100,20 @@ keycode 38 = l keycode 39 = semicolon colon alt keycode 39 = Meta_semicolon + shift alt keycode 39 = Meta_colon keycode 40 = apostrophe quotedbl control keycode 40 = Control_g alt keycode 40 = Meta_apostrophe + shift alt keycode 40 = Meta_quotedbl keycode 41 = grave asciitilde control keycode 41 = nul alt keycode 41 = Meta_grave + shift alt keycode 41 = Meta_asciitilde keycode 42 = Shift keycode 43 = backslash bar control keycode 43 = Control_backslash alt keycode 43 = Meta_backslash + shift alt keycode 43 = Meta_bar keycode 44 = z keycode 45 = x keycode 46 = c @@ -107,12 +125,15 @@ keycode 50 = m keycode 51 = comma less alt keycode 51 = Meta_comma + shift alt keycode 51 = Meta_less keycode 52 = period greater control keycode 52 = Compose alt keycode 52 = Meta_period + shift alt keycode 52 = Meta_greater keycode 53 = slash question control keycode 53 = Delete alt keycode 53 = Meta_slash + shift alt keycode 53 = Meta_question keycode 54 = Shift keycode 55 = KP_Multiply keycode 56 = Alt @@ -204,6 +225,7 @@ keycode 85 = keycode 86 = less greater bar alt keycode 86 = Meta_less + shift alt keycode 86 = Meta_greater keycode 87 = F11 F11 Console_23 control keycode 87 = F11 alt keycode 87 = Console_11

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/