SELECTED ENTRIES
RECENT COMMENTS
CATEGORIES
ARCHIVES
MOBILE
qrcode
LINKS
PROFILE
OTHERS

11
--
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
--
>>
<<
--

masaの日記

日常生活で感じたことやモバイル系の備忘録適な事を書いていこうと思います。
<< NEC Terrainのハードキーボードで画面点灯 | main | NEC Terrainとrooting.7z >>
NEC Terrainで楽々数字入力(改)
0
    以前「CAPSLOCK」キーを利用する方法を書きましたが、今回は「NUMLOCK」キーを利用する方法です。
    今回「CAPSLOCK」は従来の大文字を入力する事にしました。

    「Sym」キーを「CAPSLOCK」キーに、「マイク」キーを「NUMLOCK」キーに割り当てます。
    keylayoutの変更です。「keypad_8960.kl」の「key 244」と「key247」を下記のように改変します。(赤文字が変更したところです。)

    -------改変前-------
    key 244    MIC

    key 247    SYM
    --------------------

    -------改変後-------
    key 244    NUM_LOCK

    key 247    CAPS_LOCK
    --------------------

    keycharsの変更です。以前カーソルキーに割り当てた所を使いますので、CAPSLOCK及びNUMLOCK時に「,」を左、「.」を右カーソルキーに割り当てます。

    NUMLOCK+Shift時に「A」で「\」、「Q」で「|」、「C」で「^」、「K」で「[」、「L」で「]」、「,」で「<」、「.」で「>」、「N」で「`」

    NUMLOCK+Alt時に「K」で「{」、「L」で「}」

    「CAPSLOCK+NUMLOCK」時に「I,J,L,M」に上下左右カーソルキー、「U」に「HOME」キー、「N」に「END」キー、「O」に「PAGEUP」キー、「P」に「PAGEDOWN」キー、「,」に「INS」キー、「.」に「DEL」キーを割り当てました。

     
    「keypad_8960.kcm」の変更を行った「Basic QWERTY keys」を下記に記載してますので参考にしてください。

    -------改変分-------

    ### Basic QWERTY keys ###

    key A {
        label:                              'A'
        base:                               'a'
        shift, capslock:                    'A'
        alt, numlock:                       '¥u002f'
        numlock+shift:                      '¥u005c'

        ctrl, meta:                         none
    }

    key B {
        label:                              'B'
        base:                               'b'
        shift, capslock:                    'B'
        alt, numlock:                       '¥u003b'
        ctrl, meta:                         none
    }

    key C {
        label:                              'C'
        base:                               'c'
        shift, capslock:                    'C'
        alt, numlock:                       '¥u005f'
        numlock+shift:                      '^'

        ctrl, meta:                         none
    }

    key D {
        label:                              'D'
        base:                               'd'
        shift, capslock:                    'D'
        alt, numlock:                       '¥u0023'
        ctrl, meta:                         none
    }

    key E {
        label:                              'E'
        number:                             '3'
        base:                               'e'
        shift, capslock:                    'E'
        alt, numlock:                       '3'
        ctrl, meta:                         none
    }

    key F {
        label:                              'F'
        base:                               'f'
        shift, capslock:                    'F'
        alt, numlock:                       '¥u0024'
        ctrl, meta:                         none
    }

    key G {
        label:                              'G'
        base:                               'g'
        shift, capslock:                    'G'
        alt, numlock:                       '¥u0025'
        ctrl, meta:                         none
    }

    key H {
        label:                              'H'
        base:                               'h'
        shift, capslock:                    'H'
        alt, numlock:                       '¥u0026'
        ctrl, meta:                         none
    }

    key I {
        label:                              'I'
        number:                             '8'
        base:                               'i'
        shift, capslock:                    'I'
        alt, numlock:                       '8'
        capslock+numlock:                   fallback DPAD_UP

        ctrl, meta:                         none
    }

    key J {
        label:                              'J'
        base:                               'j'
        shift, capslock:                    'J'
        alt, numlock:                       '¥u002a'
        capslock+numlock:                   fallback DPAD_LEFT

        ctrl, meta:                         none
    }

    key K {
        label:                              'K'
        base:                               'k'
        shift, capslock:                    'K'
        alt, numlock:                       '¥u0028'
        numlock+shift:                      '['
        numlock+alt:                        '{'
        capslock+numlock:                   fallback DPAD_CENTER

        ctrl, meta:                         none
    }

    key L {
        label:                              'L'
        base:                               'l'
        shift, capslock:                    'L'
        alt, numlock:                       '¥u0029'
        numlock+shift:                      ']'
        numlock+alt:                        '}'
        capslock+numlock:                   fallback DPAD_RIGHT

        ctrl, meta:                         none
    }

    key M {
        label:                              'M'
        base:                               'm'
        shift, capslock:                    'M'
        alt, numlock:                       '¥u0022'
        capslock+numlock:                   fallback DPAD_DOWN

        ctrl, meta:                         none
    }

    key N {
        label:                              'N'
        base:                               'n'
        shift, capslock:                    'N'
        alt, numlock:                       '¥u0027'
        numlock+shift:                      '`'
        capslock+numlock:                   fallback MOVE_END

        ctrl, meta:                         none
    }

    key O {
        label:                              'O'
        number:                             '9'
        base:                               'o'
        shift, capslock:                    'O'
        alt, numlock:                       '9'
        capslock+numlock:                   fallback PAGE_UP

        ctrl, meta:                         none
    }

    key P {
        label:                              'P'
        number:                             '0'
        base:                               'p'
        shift, capslock:                    'P'
        alt, numlock:                       '0'
        capslock+numlock:                   fallback PAGE_DOWN

        ctrl, meta:                         none
    }

    key Q {
        label:                              'Q'
        number:                             '1'
        base:                               'q'
        shift, capslock:                    'Q'
        alt, numlock:                       '1'
        numlock+shift:                      '|'

        ctrl, meta:                         none
    }

    key R {
        label:                              'R'
        number:                             '4'
        base:                               'r'
        shift, capslock:                    'R'
        alt, numlock:                       '4'
        ctrl,meta:                          none
    }

    key S {
        label:                              'S'
        base:                               's'
        shift, capslock:                    'S'
        alt, numlock:                       '¥u0040'
        ctrl, meta:                         none
    }

    key T {
        label:                              'T'
        number:                             '5'
        base:                               't'
        shift, capslock:                    'T'
        alt, numlock:                       '5'
        ctrl, meta:                         none
    }

    key U {
        label:                              'U'
        number:                             '7'
        base:                               'u'
        shift, capslock:                    'U'
        alt, numlock:                       '7'
        capslock+numlock:                   fallback MOVE_HOME

        ctrl, meta:                         none
    }

    key V {
        label:                              'V'
        base:                               'v'
        shift, capslock:                    'V'
        alt, numlock:                       '¥u003a'
        ctrl, meta:                         none
    }

    key W {
        label:                              'W'
        number:                             '2'
        base:                               'w'
        shift, capslock:                    'W'
        alt, numlock:                       '2'
        ctrl, meta:                         none
    }

    key X {
        label:                              'X'
        base:                               'x'
        shift, capslock:                    'X'
        alt, numlock:                       '¥u002d'
        ctrl, meta:                         none
    }

    key Y {
        label:                              'Y'
        number:                             '6'
        base:                               'y'
        shift, capslock:                    'Y'
        alt, numlock:                       '6'
        ctrl, meta:                        none
    }

    key Z {
        label:                              'Z'
        base:                               'z'
        shift, capslock:                    'Z'
        alt, numlock:                       '¥u002b'
        ctrl, meta:                         none
    }

    key 0 {
        label, number:                      '0'
        base:                               '0'
        shift:                              ')'
        ctrl, alt, meta:                    none
    }

    key 1 {
        label, number:                      '1'
        base:                               '1'
        shift:                              '!'
        ctrl, alt, meta:                    none
    }

    key 2 {
        label, number:                      '2'
        base:                               '2'
        shift:                              '@'
        ctrl, alt, meta:                    none
    }

    key 3 {
        label, number:                      '3'
        base:                               '3'
        shift:                              '#'
        ctrl, alt, meta:                    none
    }

    key 4 {
        label, number:                      '4'
        base:                               '4'
        shift:                              '$'
        ctrl, alt, meta:                    none
    }

    key 5 {
        label, number:                      '5'
        base:                               '5'
        shift:                              '%'
        ctrl, alt, meta:                    none
    }

    key 6 {
        label, number:                      '6'
        base:                               '6'
        shift:                              '^'
        ctrl, alt, meta:                    none
        alt+shift:                          '¥u0302'
    }

    key 7 {
        label, number:                      '7'
        base:                               '7'
        shift:                              '&'
        ctrl, alt, meta:                    none
    }

    key 8 {
        label, number:                      '8'
        base:                               '8'
        shift:                              '*'
        ctrl, alt, meta:                    none
    }

    key 9 {
        label, number:                      '9'
        base:                               '9'
        shift:                              '('
        ctrl, alt, meta:                    none
    }

    key SPACE {
        label:                              ' '
        base:                               ' '
        ctrl, alt, numlock:                 none
        meta:                               fallback SEARCH
    }

    key ENTER {
        label:                              '¥n'
        base:                               '¥n'
        ctrl, alt, meta:                    none
    }

    key TAB {
        label:                              '¥t'
        base:                               '¥t'
        ctrl, alt, numlock:                 none
        meta:                               fallback APP_SWITCH
    }

    key COMMA {
        label, number:                      ','
        base:                               ','
        shift:                              '<'
        alt:                                '¥u003d'
        capslock, numlock:                  fallback DPAD_LEFT
        capslock+shift, numlock+shift:      '<'
        capslock+alt, numlock+alt:          ','
        capslock+numlock:                   fallback INSERT

        ctrl, meta:                         none
    }

    key PERIOD {
        label, number:                      '.'
        base:                               '.'
        shift:                              '>'
        alt:                                fallback SYM
        capslock, numlock:                  fallback DPAD_RIGHT
        capslock+shift, numlock+shift:      '>'
        capslock+alt, numlock+alt:          '.'
        capslock+numlock:                   fallback FORWARD_DEL
      
      ctrl, meta:                         none
    }

    key SLASH {
        label, number:                      '/'
        base:                               '/'
        shift:                              '?'
        ctrl, alt, meta:                    none
    }

    key GRAVE {
        label, number:                      '`'
        base:                               '`'
        shift:                              '~'
        alt, numlock:                       '¥u0300'
        alt+shift:                          '¥u0303'
        ctrl, meta:                         none
    }

    key MINUS {
        label, number:                      '-'
        base:                               '-'
        shift:                              '_'
        ctrl, alt, meta:                    none
    }

    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:                    none
       
    }


    key QUESTION {
        label:                             '?'
        base:                              '?'
        shift:                             '!'
        alt, numlock:                      '~'

        ctrl, meta:                        none
    }

    key EXCLAMATION {
        label:                             '!'
        base:                              '!'
        alt, numlock:                      '¥u007e'
        ctrl, meta:                        none
    }

    --------------------
     
    | スマホ | 00:41 | comments(1) | trackbacks(0) | - | - |
    お世話になりました。
    有益な情報をありがとうございます。
    | 通りすがり | 2015/03/07 1:06 AM |










    http://blog.johnmung.net/trackback/15