Tastatur customizing physikalisches Keyboard

S

Sloop

Erfahrenes Mitglied
7
Hallo zusammen,

lange ist's her als ich mich mit dem Tastaturlayout beschäftigt hatte. Da ich jedoch erst kürzlich mein Droid4 wieder vollständig neu geflasht und somit auf CM11 zurückgesetzt habe, musste ich mich diesem Thema wieder widmen. Ich habe mir liebevoll die gewünschten Tastaturbelegungen zusammengesucht und meine Tastatur nach meinen Bedürfnissen angepasst. Da es vielleicht jemanden unter euch gibt, der das ebenfalls gerne so hätte, möchte ich meine Arbeit gerne mit euch teilen und stelle euch meine Modifikation mit Erklärung zur Verfügung.


mit der folgenden Konfiguration haben die Tasten auf dem physikalischen keyboard die hier aufgeführten Funktionen:

Die Taste [OK] ganz rechts zwischen [enter] und [cursor-rechts] ist als "linke STRG" Taste belegt.
Damit kann man z.B. folgendes machen: Textabschnitt markieren durch Drücken und Gedrückthalten der "shift"-Taste ganz unten links und dann mit den cursor-Tasten den gewünschten Text markieren. Anschließend kann man mit gedrückter [OK] Taste und gleichzeitigem Drücken des Buchstabens X den markierten Text ausschneiden. Und dann in einer anderen Anwendung oder in derselben Anwendung an einem anderen Punkt wieder einfügen durch drücken und gedrückthalten der Taste [OK] und des Buchstabens V. Mit [OK]+A kann man ALLES markieren.
Die Funktionen sind dann quasi identisch wie man es vom PC her kennt, also:
STRG + C = Kopieren
STRG + X = Ausschneiden
STRG + V = Einfügen
STRG + C = bei manchen Anwendungen (z.B. Terminal, SSH, ...) ist das ^C und entspricht der Funktion ABBRUCH
usw...


[shift]-Taste hat die gewohnte Funktion
An dieser Taste wurden keine Änderungen durchgeführt. Durch Betätigen der Shift-Taste und anschließend eine der verfügbaren "orange gekennzeichneten" Tasten auf der Hardwaretastatur, werden diese ausgegeben. Beispiele:
[shift]+1 --ergibt--> ! (Ausrufezeichen)
[shift]+2 --ergibt--> @ (das at-Zeichen)
[shift]+7 --ergibt--> & (das Und-Zeichen / ampersand)
[shift]+= --ergibt--> + (das Pluszeichen)
[shift]+/ --ergibt--> ? (Fragezeichen)
...usw...

[CAPS LOCK] Taste hat die Funktion der [linke ALT] Taste
Die Modifikation von cuco durch TobbysMod bleibt weiterhin erhalten, das heißt die Taste [caps lock] funktioniert als "linke ALT"-Taste. Die Umlaute und das scharfe 's' (sz/ß) erreicht man durch die Tastenkombination:

entweder
[caps lock] Taste einmal drücken und anschließend den Buchstaben "a", "o", "u" oder "s" drücken erzeugt ein kleines "ä", "ö" oder "ü" oder das "ß"

oder
[caps lock] Taste drücken und gedrückt halten und anschließend dazu den Buchstaben "a", "o" oder "u" drücken erzeugt ein kleines "ä", "ö" oder "ü" oder das "ß".

beides ist also möglich.

Wenn man die [caps lock]-Taste zweimal hintereinander drückt, wird diese quasi eingerastet und ist solange aktiv, bis man durch erneutes weiteres Betätigen der [caps lock]-Taste die Funktion wieder freigibt. Beispiel: man drückt 2x hintereinander die [caps lock]-Taste und dann anschließend den Buchstaben a, o, u oder s. Das hat zur Folge, dass die Buchstaben "ä", "ö", "ü" bzw. "ß" ausgegeben wurden.

Quasi dasselbe, wie wenn man 2x hintereinander die [SHIFT]-Taste drückt. Das hat ebenfalls zur Folge dass zur permanenen Großschreibung gewechselt wird, solange eben bis ein erneutes Mal die [SHIFT]-Taste gedrückt wird, um die Funktion wieder freizugeben.


Hier nun weitere Tastaturkombinationen mit der [caps lock]-Taste...

[caps lock] + [1] = | (das pipe-Symbol, Unicode U+007C]
[caps lock] + [3] = « (doppelte spitze Klammer links, Unicode U+00AB]
[caps lock] + [4] = » (doppelte spitze Klammer rechts, Unicode U+00BB]
[caps lock] + [5] = < (spitze Klammer links]
[caps lock] + [6] = > (spitze Klammer links]
[caps lock] + [7] = { (geschweifte Klammer links]
[caps lock] + [8] = } (geschweifte Klammer rechts]
[caps lock] + [9] = [ (eckige Klammer links]
[caps lock] + [0] = ] (eckige Klammer rechts]
[caps lock] + ['] = ` (das Gravis-Zeichen, Unicode U+0060]
[caps lock] + [Q] = ° (das Gradzeichen, Unicode U+00B0]
[caps lock] + [E] = (das Eurozeichen, Unicode U+00B0]
[caps lock] + [R] = ® (das Zeichen für "registered trademark", Unicode U+00AE]
[caps lock] + [L] = λ (das kleine griechische Lambdazeichen]
[caps lock] + [C] = © (das Zeichen für "Copyright", Unicode U+00A9]
[caps lock] + [M] = µ (das Mikro-Zeichen, Unicode U+00B5]
[caps lock] + [/] = \ (Backslash)
[caps lock] + [-] = ~ (Tilde)

HIER gibt's eine Unicodeliste zum Nachschlagen.


Und hier der Inhalt der zwei Konfigurationsdateien


Dateiname = /system/usr/keychars/omap4-keypad.kcm
Code:
# Copyright (C) 2010 The Android Open Source Project
##
Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
##
http://www.apache.org/licenses/LICENSE-2.0
##
Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
##
Generic key character map for full alphabetic US English PC style external keyboards.
##
This file is intentionally very generic and is intended to support a broad rang of keyboards.
# Do not edit the generic key character map to support a specific keyboard; instead, create
# a new key character map file with the required keyboard configuration.
#
# customized by Sloop, 03rd May 2017
#
type ALPHA
### Basic QWERTY keys ###
key A {
label: 'A'
base: 'a'
shift, capslock: 'A'
ctrl, alt, meta: '\u00e4'
shift+alt: '\u00c4'
}
key B {
label: 'B'
base: 'b'
shift, capslock: 'B'
ctrl, alt, meta: none
}
key C {
label: 'C'
base: 'c'
shift, capslock: 'C'
ctrl, alt, meta: '\u00a9'
}
key D {
label: 'D'
base: 'd'
shift, capslock: 'D'
ctrl, alt, meta: none
}
key E {
label: 'E'
base: 'e'
shift, capslock: 'E'
ctrl, alt, meta: '\u20ac'
shift+alt: '\u20ac'
}
key F {
label: 'F'
base: 'f'
shift, capslock: 'F'
ctrl, alt, meta: none
}
key G {
label: 'G'
base: 'g'
shift, capslock: 'G'
ctrl, alt, meta: none
}
key H {
label: 'H'
base: 'h'
shift, capslock: 'H'
ctrl, alt, meta: none
}
key I {
label: 'I'
base: 'i'
shift, capslock: 'I'
ctrl, alt, meta: none
}
key J {
label: 'J'
base: 'j'
shift, capslock: 'J'
ctrl, alt, meta: none
}
key K {
label: 'K'
base: 'k'
shift, capslock: 'K'
ctrl, alt, meta: none
}
key L {
label: 'L'
base: 'l'
shift, capslock: 'L'
ctrl, alt, meta: '\u03bb'
}
key M {
label: 'M'
base: 'm'
shift, capslock: 'M'
ctrl, alt, meta: '\u00b5'
}
key N {
label: 'N'
base: 'n'
shift, capslock: 'N'
ctrl, alt, meta: none
}
key O {
label: 'O'
base: 'o'
shift, capslock: 'O'
ctrl, alt, meta: '\u00f6'
shift+alt: '\u00d6'
}
key P {
label: 'P'
base: 'p'
shift, capslock: 'P'
ctrl, alt, meta: none
}
key Q {
label: 'Q'
base: 'q'
shift, capslock: 'Q'
ctrl, alt, meta: '\u00b0'
}
key R {
label: 'R'
base: 'r'
shift, capslock: 'R'
ctrl, alt, meta: '\u00ae'
}
key S {
label: 'S'
base: 's'
shift, capslock: 'S'
ctrl, alt, meta: '\u00df'
}
key T {
label: 'T'
base: 't'
shift, capslock: 'T'
ctrl, alt, meta: none
}
key U {
label: 'U'
base: 'u'
shift, capslock: 'U'
ctrl, alt, meta: '\u00fc'
shift+alt: '\u00dc'
}
key V {
label: 'V'
base: 'v'
shift, capslock: 'V'
ctrl, alt, meta: none
}
key W {
label: 'W'
base: 'w'
shift, capslock: 'W'
ctrl, alt, meta: none
}
key X {
label: 'X'
base: 'x'
shift, capslock: 'X'
ctrl, alt, meta: none
}
key Y {
label: 'Y'
base: 'y'
shift, capslock: 'Y'
ctrl, alt, meta: none
}
key Z {
label: 'Z'
base: 'z'
shift, capslock: 'Z'
ctrl, alt, meta: none
}
key 0 {
label, number: '0'
base: '0'
shift: ')'
ctrl, alt, meta: ']'
}
key 1 {
label, number: '1'
base: '1'
shift: '!'
ctrl, alt, meta: '\u007c'
}
key 2 {
label, number: '2'
base: '2'
shift: '@'
ctrl, alt, meta: none
}
key 3 {
label, number: '3'
base: '3'
shift: '#'
ctrl, alt, meta: '\u00ab'
}
key 4 {
label, number: '4'
base: '4'
shift: '$'
ctrl, alt, meta: '\u00bb'
}
key 5 {
label, number: '5'
base: '5'
shift: '%'
ctrl, alt, meta: '<'
}
key 6 {
label, number: '6'
base: '6'
shift: '^'
ctrl, alt, meta: '>'
}
key 7 {
label, number: '7'
base: '7'
shift: '&'
ctrl, alt, meta: '{'
}
key 8 {
label, number: '8'
base: '8'
shift: '*'
ctrl, alt, meta: '}'
}
key 9 {
label, number: '9'
base: '9'
shift: '('
ctrl, alt, meta: '['
}
key SPACE {
label: ' '
base: ' '
ctrl: none
alt, meta: fallback SEARCH
}
key ENTER {
label: '\n'
base: '\n'
ctrl, alt, meta: none
}
key TAB {
label: '\t'
base: '\t'
ctrl, alt, meta: none
}
key COMMA {
label, number: ','
base: ','
shift: ';'
ctrl, alt, meta: none
}
key PERIOD {
label, number: '.'
base: '.'
shift: ':'
ctrl, alt, meta: none
}
key SLASH {
label, number: '/'
base: '/'
shift: '?'
ctrl, alt, meta: '\u005c'
}
key GRAVE {
label, number: '`'
base: '`'
shift: '~'
ctrl, alt, meta: none
}
key MINUS {
label, number: '-'
base: '-'
shift: '_'
ctrl, alt, meta: '\u007e'
}
key EQUALS {
label, number: '='
base: '='
shift: '+'
ctrl, alt, meta: none
}
key LEFT_BRACKET {
label, number: '['
base: '['
shift: '['
ctrl, alt, meta: none
}
key RIGHT_BRACKET {
label, number: ']'
base: ']'
shift: ']'
ctrl, alt, meta: none
}
key BACKSLASH {
label, number: '\\'
base: '\\'
shift: '\\'
ctrl, alt, meta: none
}
key SEMICOLON {
label, number: ';'
base: ';'
shift: ';'
ctrl, alt, meta: none
}
key APOSTROPHE {
label, number: '\''
base: '\''
shift: '"'
ctrl, alt, meta: '\u0060'
}
key MEDIA_EJECT {
label: '\uEF01'
base: '\uEF01'
shift, capslock: '\uEF01'
ctrl, alt, meta: '\uEF01'
}
### Numeric keypad ###
key NUMPAD_0 {
label, number: '0'
base: fallback INSERT
numlock: '0'
ctrl, alt, meta: none
}
key NUMPAD_1 {
label, number: '1'
base: fallback MOVE_END
numlock: '1'
ctrl, alt, meta: none
}
key NUMPAD_2 {
label, number: '2'
base: fallback DPAD_DOWN
numlock: '2'
ctrl, alt, meta: none
}
key NUMPAD_3 {
label, number: '3'
base: fallback PAGE_DOWN
numlock: '3'
ctrl, alt, meta: none
}
key NUMPAD_4 {
label, number: '4'
base: fallback DPAD_LEFT
numlock: '4'
ctrl, alt, meta: none
}
key NUMPAD_5 {
label, number: '5'
base: fallback DPAD_CENTER
numlock: '5'
ctrl, alt, meta: none
}
key NUMPAD_6 {
label, number: '6'
base: fallback DPAD_RIGHT
numlock: '6'
ctrl, alt, meta: none
}
key NUMPAD_7 {
label, number: '7'
base: fallback MOVE_HOME
numlock: '7'
ctrl, alt, meta: none
}
key NUMPAD_8 {
label, number: '8'
base: fallback DPAD_UP
numlock: '8'
ctrl, alt, meta: none
}
key NUMPAD_9 {
label, number: '9'
base: fallback PAGE_UP
numlock: '9'
ctrl, alt, meta: none
}
key NUMPAD_LEFT_PAREN {
label, number: '('
base: '('
ctrl, alt, meta: none
}
key NUMPAD_RIGHT_PAREN {
label, number: ')'
base: ')'
ctrl, alt, meta: none
}
key NUMPAD_DIVIDE {
label, number: '/'
base: '/'
ctrl, alt, meta: none
}
key NUMPAD_MULTIPLY {
label, number: '*'
base: '*'
ctrl, alt, meta: none
}
key NUMPAD_SUBTRACT {
label, number: '-'
base: '-'
ctrl, alt, meta: none
}
key NUMPAD_ADD {
label, number: '+'
base: '+'
ctrl, alt, meta: none
}
key NUMPAD_DOT {
label, number: '.'
base: fallback FORWARD_DEL
numlock: '.'
ctrl, alt, meta: none
}
key NUMPAD_COMMA {
label, number: ','
base: ','
ctrl, alt, meta: none
}
key NUMPAD_EQUALS {
label, number: '='
base: '='
ctrl, alt, meta: none
}
key NUMPAD_ENTER {
label: '\n'
base: '\n' fallback ENTER
ctrl, alt, meta: none fallback ENTER
}
### Special keys on phones ###
key AT {
label, number: '@'
base: '@'
}
key STAR {
label, number: '*'
base: '*'
}
key POUND {
label, number: '#'
base: '#'
}
key PLUS {
label, number: '+'
base: '+'
}
### Non-printing keys ###
key ESCAPE {
base: fallback BACK
alt, meta: fallback HOME
ctrl: fallback MENU
}
### Gamepad buttons ###
key BUTTON_A {
base: fallback BACK
}
key BUTTON_B {
base: fallback BACK
}
key BUTTON_C {
base: fallback BACK
}
key BUTTON_X {
base: fallback DPAD_CENTER
}
key BUTTON_Y {
base: fallback DPAD_CENTER
}
key BUTTON_Z {
base: fallback DPAD_CENTER
}
key BUTTON_L1 {
base: none
}
key BUTTON_R1 {
base: none
}
key BUTTON_L2 {
base: none
}
key BUTTON_R2 {
base: none
}
key BUTTON_THUMBL {
base: fallback DPAD_CENTER
}
key BUTTON_THUMBR {
base: fallback DPAD_CENTER
}
key BUTTON_START {
base: fallback HOME
}
key BUTTON_SELECT {
base: fallback MENU
}
key BUTTON_MODE {
base: fallback MENU
}
key BUTTON_1 {
base: fallback DPAD_CENTER
}
key BUTTON_2 {
base: fallback DPAD_CENTER
}
key BUTTON_3 {
base: fallback DPAD_CENTER
}
key BUTTON_4 {
base: fallback DPAD_CENTER
}
key BUTTON_5 {
base: fallback DPAD_CENTER
}
key BUTTON_6 {
base: fallback DPAD_CENTER
}
key BUTTON_7 {
base: fallback DPAD_CENTER
}
key BUTTON_8 {
base: fallback DPAD_CENTER
}
key BUTTON_9 {
base: fallback DPAD_CENTER
}
key BUTTON_10 {
base: fallback DPAD_CENTER
}
key BUTTON_11 {
base: fallback DPAD_CENTER
}
key BUTTON_12 {
base: fallback DPAD_CENTER
}
key BUTTON_13 {
base: fallback DPAD_CENTER
}
key BUTTON_14 {
base: fallback DPAD_CENTER
}
key BUTTON_15 {
base: fallback DPAD_CENTER
}
key BUTTON_16 {
base: fallback DPAD_CENTER
}

Dateiname = /system/usr/keylayout/omap4-keypad.kl
Code:
key 41 GRAVE
key 2 1 WAKE_DROPPED
key 3 2 WAKE_DROPPED
key 4 3 WAKE_DROPPED
key 5 4 WAKE_DROPPED
key 6 5 WAKE_DROPPED
key 7 6 WAKE_DROPPED
key 8 7 WAKE_DROPPED
key 9 8 WAKE_DROPPED
key 10 9 WAKE_DROPPED
key 11 0 WAKE_DROPPED
key 158 BACK WAKE_DROPPED
key 230 SOFT_RIGHT WAKE
key 60 SOFT_RIGHT WAKE
key 107 POWER WAKE_DROPPED
key 62 ENDCALL WAKE_DROPPED
key 229 MENU WAKE_DROPPED
key 139 MENU WAKE_DROPPED
key 59 MENU WAKE_DROPPED
key 127 SEARCH WAKE_DROPPED
key 217 SEARCH WAKE_DROPPED
key 228 POUND WAKE_DROPPED
key 227 STAR
key 231 CALL WAKE_DROPPED
key 61 CALL WAKE_DROPPED
key 232 CTRL_LEFT WAKE_DROPPED
key 105 DPAD_LEFT WAKE_DROPPED
key 106 DPAD_RIGHT WAKE_DROPPED
key 102 HOME WAKE
key 103 DPAD_UP WAKE_DROPPED
key 108 DPAD_DOWN WAKE_DROPPED
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
key 116 POWER WAKE
key 211 FOCUS
key 212 CAMERA
key 16 Q WAKE_DROPPED
key 17 W WAKE_DROPPED
key 18 E WAKE_DROPPED
key 19 R WAKE_DROPPED
key 20 T WAKE_DROPPED
key 21 Y WAKE_DROPPED
key 22 U WAKE_DROPPED
key 23 I WAKE_DROPPED
key 24 O WAKE_DROPPED
key 25 P WAKE_DROPPED
key 26 LEFT_BRACKET WAKE_DROPPED
key 27 RIGHT_BRACKET WAKE_DROPPED
key 43 BACKSLASH WAKE_DROPPED
key 30 A WAKE_DROPPED
key 31 S WAKE_DROPPED
key 32 D WAKE_DROPPED
key 33 F WAKE_DROPPED
key 34 G WAKE_DROPPED
key 35 H WAKE_DROPPED
key 36 J WAKE_DROPPED
key 37 K WAKE_DROPPED
key 38 L WAKE_DROPPED
key 39 SEMICOLON WAKE_DROPPED
key 40 APOSTROPHE WAKE_DROPPED
key 14 DEL WAKE_DROPPED
key 44 Z WAKE_DROPPED
key 45 X WAKE_DROPPED
key 46 C WAKE_DROPPED
key 47 V WAKE_DROPPED
key 48 B WAKE_DROPPED
key 49 N WAKE_DROPPED
key 50 M WAKE_DROPPED
key 51 COMMA WAKE_DROPPED
key 52 PERIOD WAKE_DROPPED
key 53 SLASH WAKE_DROPPED
key 28 ENTER WAKE_DROPPED
key 56 ALT_LEFT WAKE
key 100 ALT_RIGHT WAKE
key 42 SHIFT_LEFT WAKE
key 54 SHIFT_RIGHT WAKE
key 15 TAB WAKE_DROPPED
key 57 SPACE WAKE_DROPPED
key 150 EXPLORER WAKE
key 155 ENVELOPE WAKE
key 12 MINUS WAKE_DROPPED
key 13 EQUALS WAKE_DROPPED
key 215 AT WAKE_DROPPED
key 162 MEDIA_EJECT WAKE_DROPPED
key 222 ALT_LEFT WAKE

Wünsche euch viel Spaß damit.

Grüße
Sloop
 
  • Danke
Reaktionen: Larian

Ähnliche Themen

S
Antworten
1
Aufrufe
1.058
Sloop
S
juno81
  • juno81
Antworten
6
Aufrufe
2.924
cuco
C
E
Antworten
4
Aufrufe
2.281
eppelhome
E
Zurück
Oben Unten