diff options
author | Jeff Brown <jeffbrown@google.com> | 2010-12-06 17:13:33 -0800 |
---|---|---|
committer | Jeff Brown <jeffbrown@google.com> | 2010-12-07 17:35:26 -0800 |
commit | 49ed71db425c5054e3ad9526496a7e116c89556b (patch) | |
tree | 3d3b28bdaf76d5cc531fd3b52fcbb0efb32a05ba /data/keyboards/Virtual.kcm | |
parent | f30c8287525ac049d4d7589a330be5713256046b (diff) | |
download | frameworks_base-49ed71db425c5054e3ad9526496a7e116c89556b.zip frameworks_base-49ed71db425c5054e3ad9526496a7e116c89556b.tar.gz frameworks_base-49ed71db425c5054e3ad9526496a7e116c89556b.tar.bz2 |
Add support for fallback keycodes.
This change enables the framework to synthesize key events to implement
default behavior when an application does not handle a key.
For example, this change enables numeric keypad keys to perform
their associated special function when numlock is off.
The application is informed that it is processing a fallback keypress
so it can choose to ignore it.
Added a new keycode for switching applications.
Added ALT key deadkeys.
New default key mappings:
- ESC -> BACK
- Meta+ESC -> HOME
- Alt+ESC -> MENU
- Meta+Space -> SEARCH
- Meta+Tab -> APP_SWITCH
Fixed some comments.
Fixed some tests.
Change-Id: Id7f3b6645f3a350275e624547822f72652f3defe
Diffstat (limited to 'data/keyboards/Virtual.kcm')
-rw-r--r-- | data/keyboards/Virtual.kcm | 38 |
1 files changed, 29 insertions, 9 deletions
diff --git a/data/keyboards/Virtual.kcm b/data/keyboards/Virtual.kcm index 8d3c7ac..0ce4a68 100644 --- a/data/keyboards/Virtual.kcm +++ b/data/keyboards/Virtual.kcm @@ -39,7 +39,9 @@ key C { label: 'C' base: 'c' shift, capslock: 'C' - ctrl, alt, meta: none + alt: '\u00e7' + shift+alt: '\u00c7' + ctrl, meta: none } key D { @@ -53,7 +55,8 @@ key E { label: 'E' base: 'e' shift, capslock: 'E' - ctrl, alt, meta: none + alt: '\u0301' + ctrl, meta: none } key F { @@ -81,7 +84,8 @@ key I { label: 'I' base: 'i' shift, capslock: 'I' - ctrl, alt, meta: none + alt: '\u0302' + ctrl, meta: none } key J { @@ -116,7 +120,8 @@ key N { label: 'N' base: 'n' shift, capslock: 'N' - ctrl, alt, meta: none + alt: '\u0303' + ctrl, meta: none } key O { @@ -151,7 +156,8 @@ key S { label: 'S' base: 's' shift, capslock: 'S' - ctrl, alt, meta: none + alt: '\u00df' + ctrl, meta: none } key T { @@ -165,7 +171,8 @@ key U { label: 'U' base: 'u' shift, capslock: 'U' - ctrl, alt, meta: none + alt: '\u0308' + ctrl, meta: none } key V { @@ -250,6 +257,7 @@ key 6 { base: '6' shift: '^' ctrl, alt, meta: none + alt+shift: '\u0302' } key 7 { @@ -276,7 +284,8 @@ key 9 { key SPACE { label: ' ' base: ' ' - ctrl, alt, meta: none + ctrl, alt: none + meta: fallback SEARCH } key ENTER { @@ -288,7 +297,8 @@ key ENTER { key TAB { label: '\t' base: '\t' - ctrl, alt, meta: none + ctrl, alt: none + meta: fallback APP_SWITCH } key COMMA { @@ -316,7 +326,9 @@ key GRAVE { label, number: '`' base: '`' shift: '~' - ctrl, alt, meta: none + alt: '\u0300' + alt+shift: '\u0303' + ctrl, meta: none } key MINUS { @@ -522,3 +534,11 @@ key PLUS { label, number: '+' base: '+' } + +### Non-printing keys ### + +key ESCAPE { + base: fallback BACK + meta: fallback HOME + alt: fallback MENU +} |