手機 - F(x)tec Pro1 X - Sailfish OS - 修改鍵盤按鍵數值



drivers/input/keyboard/aw9523/aw9523b.c

static const unsigned short  key_array[Y_NUM][X_NUM] = {
    { 0xFFFF,        KEY_J,         KEY_N,          KEY_7,        KEY_UP,        KEY_ENTER,     KEY_U,     KEY_DOT                 },
    { KEY_3,         KEY_D,         KEY_X,          KEY_COMMA,    KEY_O,         KEY_9,         KEY_E,     KEY_K                   },
    { KEY_LEFT,      KEY_H,         KEY_B,          KEY_6,        KEY_RIGHT,     KEY_RIGHTALT,  KEY_Y,     KEY_SLASH               },
    { KEY_F5,        KEY_S,         KEY_Z,          KEY_F3,       KEY_LEFTBRACE, KEY_MINUS,     KEY_W,     KEY_SLASH | KF_SHIFT    },
    { KEY_BACKSPACE, KEY_F,         KEY_C,          0xFFFF,       KEY_RIGHTBRACE,KEY_EQUAL,     KEY_R,     KEY_APOSTROPHE          },
    { KEY_CAPSLOCK,  KEY_A,         KEY_GRAVE,      KEY_DOWN,     KEY_P,         KEY_0,         KEY_Q,     KEY_L                   },
    { KEY_SPACE,     KEY_G,         KEY_V,          KEY_M,        KEY_I,         KEY_8,         KEY_T,     KEY_5                   },
    { KEY_ESC,       KEY_1,         0xFFFF,         0xFFFF,       KEY_2,         KEY_4,         KEY_TAB,   0xFFFF                  }
};

static const unsigned short  key_fn_array[Y_NUM][X_NUM] = {
    { 0xFFFF,           KEY_J,            KEY_N,                KEY_7 | KF_SHIFT,     KEY_PAGEUP,                KEY_ENTER,            KEY_U,   KEY_DOT | KF_SHIFT        },
    { KEY_3 | KF_SHIFT, KEY_D,            KEY_X,                KEY_COMMA | KF_SHIFT, KEY_O,                     KEY_9 | KF_SHIFT,     KEY_E,   KEY_K                     },
    { KEY_HOME,         KEY_H,            KEY_B,                KEY_6 | KF_SHIFT,     KEY_END,                   KEY_DELETE,           KEY_Y,   KEY_BACKSLASH | KF_SHIFT  },
    { KEY_F6,           KEY_S,            KEY_Z,                KEY_F4,               KEY_LEFTBRACE | KF_SHIFT,  KEY_MINUS | KF_SHIFT, KEY_W,   KEY_SEMICOLON | KF_SHIFT  },
    { KEY_BACKSPACE,    KEY_F,            KEY_C,                0xFFFF,               KEY_RIGHTBRACE | KF_SHIFT, KEY_EQUAL | KF_SHIFT, KEY_R,   KEY_APOSTROPHE | KF_SHIFT },
    { KEY_CAPSLOCK,     KEY_A,            KEY_GRAVE | KF_SHIFT, KEY_PAGEDOWN,         KEY_BACKSLASH,             KEY_0 | KF_SHIFT,     KEY_Q,   KEY_SEMICOLON             },
    { KEY_SPACE,        KEY_G,            KEY_V,                KEY_M,                KEY_I,                     KEY_8 | KF_SHIFT,     KEY_T,   KEY_5 | KF_SHIFT          },
    { KEY_ESC,          KEY_1 | KF_SHIFT, 0xFFFF,               0xFFFF,               KEY_2 | KF_SHIFT,          KEY_4 | KF_SHIFT,     KEY_TAB, 0xFFFF                    }
};

修改後:

FF3
Fn + FF4
SymF5
Fn + SymF6
Fn + UpPageUp
Fn + DownPageDown
Fn + LeftHome
Fn + RightEnd
DelAlt