Keyboard layout file: Qwerty. KCM
The process of converting the driver key value to Android keycode:
Qwerty. KCM: scalecode-> key name
Keycodelables. h: key name-> keycode
Special symbol ing: Qwerty. KL
Change the sym key to a special symbol:
Added in Qwerty. KCM
Sym 0xef01 0xef01 0xef01 0xef01 0xef01 0xef01
The system displays the characterpickerdialog containing these special characters based on the ing relationship in qwertykeylistener.
Picker_sets.put (keycharactermap. picker_dialog_input,
"\ U2026 \ u00a5 \ u2022 \ u00ae \ u00a9 \ u00b1 [] {}\| ");
// Note: public static final char picker_dialog_input = '\ uef01 ';
New key:
// Note: if you add a new keycode here you must also add it:
// Issystem ()
// NATIVE/include/Android/keycodes. h
// Frameworks/base/include/UI/keycodelabels. h
// External/WebKit/Android/plugins/anpkeycodes. h
// Tools/puppet_master/puppetmaster/nav_keys.py
// Frameworks/base/CORE/RES/values/attrs. xml
// Commands/monkey. Java
// Emulator?
//
// Also Android currently does not reserve code ranges for vendor-
// Specific key codes. If you have new key codes to have, you
// Must contribute a patch to the open source project to define
// Those new codes. This is intended to maintain a consistent
// Set of key code definitions each SS all Android devices.