Skip to content

Commit 62aaac7

Browse files
committed
feat(UI): don't auto hide console keyboard on defocus [closes #35]
1 parent f5c78fa commit 62aaac7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/UI/Screens/Console/ConsoleView.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
#include "utils/StorageHelper.h"
1010
#include "utils/TimeHelper.h"
1111

12+
#define AUTO_HIDE_KEYBOARD_ON_DEFOCUS 0
13+
1214
namespace UI
1315
{
1416
static constexpr lv_coord_t s_gcodeWidth = 50;
@@ -302,12 +304,14 @@ namespace UI
302304
view->showKeyboard(true);
303305
break;
304306
}
307+
#if AUTO_HIDE_KEYBOARD_ON_DEFOCUS
305308
case LV_EVENT_DEFOCUSED:
306309
{
307310
ZoneScopedN("ConsoleView::onKeyboardEvent:LV_EVENT_DEFOCUSED");
308311
view->showKeyboard(false);
309312
break;
310313
}
314+
#endif
311315
case LV_EVENT_VALUE_CHANGED:
312316
{
313317
ZoneScopedN("ConsoleView::onKeyboardEvent:LV_EVENT_VALUE_CHANGED");

0 commit comments

Comments
 (0)