Sxmo - Simple X Mobile Released for the Pinephone (new minimalistic UI & image)
#47
I've been trying to change the layout of the keyboard, and I'm running into an issue I can't fix. The last key of the second layer won't show up and the keyboard is elevated from the bottom of the screen.

Here's the layout.en.h file. Can anyone see what I'm doing wrong?

static Key keys[40] = { NULL };

static Key keys_en[40] = {
        { 0, XK_q, 1 },
        { 0, XK_w, 1 },
        { 0, XK_e, 1 },
        { 0, XK_r, 1 },
        { 0, XK_t, 1 },
        { 0, XK_y, 1 },
        { 0, XK_u, 1 },
        { 0, XK_i, 1 },
        { 0, XK_o, 1 },
        { 0, XK_p, 1 },

        { 0 }, /* New row */

        { 0, XK_a, 1 },
        { 0, XK_s, 1 },
        { 0, XK_d, 1 },
        { 0, XK_f, 1 },
        { 0, XK_g, 1 },
        { 0, XK_h, 1 },
        { 0, XK_j, 1 },
        { 0, XK_k, 1 },
        { 0, XK_l, 1 },
        { "<-", XK_BackSpace, 1 },

        { 0 }, /* New row */

        { "Ctrl", XK_Control_L, 1 },
        { 0, XK_z, 1 },
        { 0, XK_x, 1 },
        { 0, XK_c, 1 },
        { 0, XK_v, 1 },
        { 0, XK_b, 1 },
        { 0, XK_n, 1 },
        { 0, XK_m, 1 },
        { "Enter", XK_Return, 2 },

        { 0 }, /* New row */
        { "Shift", XK_Shift_L, 2 },
        { "Tab", XK_Tab, 1 },
/*        { "Alt", XK_Alt_L, 1 },*/
        { "", XK_space, 4 },
        { ".", XK_period, 1 },
        { "/?", XK_slash, 1 },
        { "123", XK_Cancel, 1},
};

static Key keys_symbols[40] = {
  { "Esc", XK_Escape, 1 },
  { "7&", XK_7, 1 },
  { "8*", XK_8, 1 },
  { "9(", XK_9, 1 },
  { "PgUp", XK_Page_Up, 1 },
  { "U", XK_Up, 1 },
  { "PgDn", XK_Page_Down, 1 },
  { "-_", XK_minus, 1 },
  { "=+", XK_plus, 1 },
  { "<-", XK_BackSpace, 1 },

  { 0 }, /* New row */

  { "`~", XK_grave, 1 },
  { "4$", XK_4, 1 },
  { "5%", XK_5, 1 },
  { "6^", XK_6, 1 },
  { "L", XK_Left, 1 },
  { "D", XK_Down, 1 },
  { "R", XK_Right, 1 },
  { "[{", XK_bracketleft, 1 },
  { "]}", XK_bracketright, 1 },
  { "\\|", XK_backslash, 1 },

  { 0 }, /* New row */

  { "Tab", XK_Tab, 1 },
  { "1!", XK_1, 1 },
  { "2@", XK_2, 1 },
  { "3#", XK_3, 1 },
  { "Home", XK_Home, 1 },
  { "End", XK_End, 1 },
  { ";:", XK_colon, 1 },
  { "'\"", XK_apostrophe, 1 },
  { "Enter", XK_Return, 2 },

  { 0 }, /* New row */
  { "Shift", XK_Shift_L, 1 },
  { "Ctrl", XK_Control_L, 1 },
  { "0)", XK_0, 1 },
  { "Alt", XK_Alt_L, 1 },
  { "", XK_space, 2 },
  { ",<", XK_comma, 1 },
  { ".>", XK_period, 1 },
  { "/?", XK_slash, 1 },
  { "ABC", XK_Cancel, 1},
};

Buttonmod buttonmods[] = {
        { XK_Shift_L, Button2 },
        { XK_Alt_L, Button3 },
};


Messages In This Thread
RE: Sxmo - Simple X Mobile Released for the Pinephone (new minimalistic UI & image) - by visiblink - 05-29-2020, 01:15 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  PostmarketOS sxmo pinephone keyboard keymaps? afwtioane 2 2,819 09-11-2022, 04:37 AM
Last Post: manubert
  sxmo pim nextcloud Uturn 8 7,813 02-22-2022, 03:23 PM
Last Post: TRS-80
  Battery life on sxmo xark 1 2,568 02-12-2022, 10:07 AM
Last Post: TRS-80
  Official Channels for Sxmo Support anjanmomi 2 3,748 02-12-2022, 09:50 AM
Last Post: TRS-80
  sxmo & php --- 2 2,335 01-31-2022, 01:45 PM
Last Post: ---
  sxmo improvements unrealb2 7 7,189 11-17-2021, 06:43 AM
Last Post: fdlamotte
  SXMO on Debian IVp 0 2,585 08-21-2021, 02:33 PM
Last Post: IVp
  Megi's multiboot sxmo image aithal 1 2,614 06-14-2021, 08:07 AM
Last Post: fdlamotte
  SXMO svkbd with joypad layout [for basic dosbox play] streak 0 1,790 05-27-2021, 08:47 AM
Last Post: streak
  Sxmo on Arch IVp 4 7,570 05-19-2021, 03:18 AM
Last Post: dukla2000

Forum Jump:


Users browsing this thread: 71 Guest(s)