comparison Framework/Widgets/TestCairoWidget.cpp @ 327:8716176ff7f0 am-2

added support for arrow keys
author am@osimis.io
date Tue, 16 Oct 2018 15:25:21 +0200
parents 8a86695fcbc3
children e33659decec5
comparison
equal deleted inserted replaced
326:612238b3f3e8 327:8716176ff7f0
113 { 113 {
114 UpdateStatusBar(direction == MouseWheelDirection_Down ? "Wheel down" : "Wheel up"); 114 UpdateStatusBar(direction == MouseWheelDirection_Down ? "Wheel down" : "Wheel up");
115 } 115 }
116 116
117 117
118 void TestCairoWidget::KeyPressed(char key, 118 void TestCairoWidget::KeyPressed(KeyboardKeys key,
119 char keyChar,
119 KeyboardModifiers modifiers) 120 KeyboardModifiers modifiers)
120 { 121 {
121 UpdateStatusBar("Key pressed: \"" + std::string(1, key) + "\""); 122 UpdateStatusBar("Key pressed: \"" + std::string(1, keyChar) + "\"");
122 } 123 }
123 } 124 }
124 } 125 }