Qt: Allow binding keyboard keys via fullscreen UI
This commit is contained in:
@ -129,7 +129,10 @@ bool QtDisplayWidget::event(QEvent* event)
|
||||
{
|
||||
const QKeyEvent* key_event = static_cast<QKeyEvent*>(event);
|
||||
if (!key_event->isAutoRepeat())
|
||||
emit windowKeyEvent(QtUtils::KeyEventToInt(key_event), event->type() == QEvent::KeyPress);
|
||||
{
|
||||
emit windowKeyEvent(key_event->key(), static_cast<int>(key_event->modifiers()),
|
||||
event->type() == QEvent::KeyPress);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user