core: layout: set the spacebar text as whitespace

If the key value can emit text, it should put the text to be emitted in
the text field. It should not put any special symbol for the key label,
and it should instead be a special case in the display_label() method.
This commit is contained in:
Richard Acayan 2024-08-04 22:13:03 -04:00
parent db2a8cdeab
commit 399ab9deba

View file

@ -504,7 +504,7 @@ const KEYSYMS: [(&str, Keysym, &str); 20] = [
("loc alt", Keysym::Alt_L, "Alt"), ("loc alt", Keysym::Alt_L, "Alt"),
("right", Keysym::Right, ""), ("right", Keysym::Right, ""),
("shift", Keysym::Shift_L, ""), ("shift", Keysym::Shift_L, ""),
("space", Keysym::space, ""), ("space", Keysym::space, " "),
("tab", Keysym::Tab, ""), ("tab", Keysym::Tab, ""),
("up", Keysym::Up, ""), ("up", Keysym::Up, ""),
]; ];