Qwerty physical keyboard layout and special symbol Layout

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.