about summary refs log tree commit diff stats
path: root/070display.cc
diff options
context:
space:
mode:
Diffstat (limited to '070display.cc')
-rw-r--r--070display.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/070display.cc b/070display.cc
index b4e354f8..b62cda37 100644
--- a/070display.cc
+++ b/070display.cc
@@ -187,8 +187,9 @@ case READ_KEY_FROM_KEYBOARD: {
   int event_type = tb_peek_event(&event, 5/*ms*/);
   long long int result = 0;
   long long int found = false;
+//?   cerr << event_type << '\n'; //? 1
   if (event_type == TB_EVENT_KEY) {
-    result = event.ch;
+    result = event.key ? event.key : event.ch;
     found = true;
   }
   products.resize(2);