onKeyEvent method
Implementation
bool onKeyEvent(KeyEvent event) {
_hasHardKeyboard = true;
if (_softLayoutShowing) {
_softLayoutShowing = false;
_inputControl?.hideSoftLayout();
}
_handleShowLayout = false;
_showOrRefreshLayoutSwitcher('onKeyEvent');
if (event.isDoubleClickShift) {
switchLayout();
return true;
}
final handled = _inputControl?.onKeyEvent(event) ?? false;
return handled;
}