From 0fe6551ee376400d777811e419c7c1c1302678d6 Mon Sep 17 00:00:00 2001 From: Valentin Vanelslande Date: Tue, 10 Oct 2017 14:20:43 -0500 Subject: [PATCH] Update main.cpp --- src/citra_qt/main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/citra_qt/main.cpp b/src/citra_qt/main.cpp index 8adbcfe86..1e77aa6dd 100644 --- a/src/citra_qt/main.cpp +++ b/src/citra_qt/main.cpp @@ -824,6 +824,12 @@ void GMainWindow::dragMoveEvent(QDragMoveEvent* event) { event->acceptProposedAction(); } +void GMainWindow::keyPressEvent(QKeyEvent* event) { +if (event->key() == Qt::Key_F4 && emulation_running) { + OnPauseGame(); + } +} + bool GMainWindow::ConfirmChangeGame() { if (emu_thread == nullptr) return true;