Skip to content

Commit 64a95bd

Browse files
committed
Fix terminal key info mapping
1 parent c60256f commit 64a95bd

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

applications/terminal/src/screen/gui/gui_screen.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,14 @@ bool gui_screen_t::createUi()
7676
canvas.component->setBoundsListener(new canvas_resize_bounds_listener_t(this));
7777
canvas.component->addKeyListener([this](g_key_event& e)
7878
{
79-
auto info = g_keyboard::fullKeyInfo(e.info);
79+
g_key_info_basic ghostKey;
80+
ghostKey.pressed = e.info.pressed;
81+
ghostKey.ctrl = e.info.ctrl;
82+
ghostKey.shift = e.info.shift;
83+
ghostKey.alt = e.info.alt;
84+
ghostKey.scancode = e.info.scancode;
85+
86+
auto info = g_keyboard::fullKeyInfo(ghostKey);
8087
if(info.key == "KEY_PAD_2")
8188
{
8289
scroll(1);

0 commit comments

Comments
 (0)