Mercurial > enso_core
changeset 37:013ae5136ce8
Modified enso.ui.quasimode.charmaps to delegate to input, which delegates to a platform-specific provider.
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Sun, 24 Feb 2008 13:08:45 -0600 |
parents | e340384ccd0d |
children | 1517f15208b6 |
files | enso/ui/quasimode/charmaps.py |
diffstat | 1 files changed, 1 insertions(+), 47 deletions(-) [+] |
line wrap: on
line diff
--- a/enso/ui/quasimode/charmaps.py Sun Feb 24 12:55:10 2008 -0600 +++ b/enso/ui/quasimode/charmaps.py Sun Feb 24 13:08:45 2008 -0600 @@ -53,50 +53,4 @@ # The Standard map # ---------------------------------------------------------------------------- -# Our initial, Ameri-centric keycode map -STANDARD_ALLOWED_KEYCODES = { - 48: "0", - 49: "1", - 50: "2", - 51: "3", - 52: "4", - 53: "5", - 54: "6", - 55: "7", - 56: "8", - 57: "9", - input.KEYCODE_SPACE: " ", - 65: "a", - 66: "b", - 67: "c", - 68: "d", - 69: "e", - 70: "f", - 71: "g", - 72: "h", - 73: "i", - 74: "j", - 75: "k", - 76: "l", - 77: "m", - 78: "n", - 79: "o", - 80: "p", - 81: "q", - 82: "r", - 83: "s", - 84: "t", - 85: "u", - 86: "v", - 87: "w", - 88: "x", - 89: "y", - 90: "z", - # Some manually checked key codes: - 191: "?", - 220: "\\", - 190: ".", - 186: ":", - 187: "+", - 189: "-", - } +STANDARD_ALLOWED_KEYCODES = input.CASE_INSENSITIVE_KEYCODE_MAP