FullscreenUI: Re-enable most previously-missing settings

This commit is contained in:
Connor McLaughlin
2022-08-26 01:26:55 +10:00
parent cac2714555
commit cab51c6764
24 changed files with 1229 additions and 1244 deletions

View File

@ -2,6 +2,7 @@
#include "common/assert.h"
#include "common/bitutils.h"
#include "common/log.h"
#include "frontend-common/imgui_manager.h"
#include "mainwindow.h"
#include "qthost.h"
#include "qtutils.h"
@ -205,6 +206,14 @@ bool DisplayWidget::event(QEvent* event)
case QEvent::KeyRelease:
{
const QKeyEvent* key_event = static_cast<QKeyEvent*>(event);
if (ImGuiManager::WantsTextInput() && key_event->type() == QEvent::KeyPress)
{
const QString text(key_event->text());
if (!text.isEmpty())
emit windowTextEntered(text);
}
if (key_event->isAutoRepeat())
return true;