Apply "Keyboard requires capture" also in full screen mode, fixes #2781.

This commit is contained in:
OBattler
2022-11-01 16:19:46 +01:00
parent 15f39c19a9
commit a9c472d6b6
2 changed files with 2 additions and 2 deletions

View File

@@ -1626,7 +1626,7 @@ void MainWindow::showMessage_(int flags, const QString &header, const QString &m
void MainWindow::keyPressEvent(QKeyEvent* event) void MainWindow::keyPressEvent(QKeyEvent* event)
{ {
if (send_keyboard_input && !(kbd_req_capture && !mouse_capture && !video_fullscreen)) if (send_keyboard_input && !(kbd_req_capture && !mouse_capture))
{ {
// Windows keys in Qt have one-to-one mapping. // Windows keys in Qt have one-to-one mapping.
if (event->key() == Qt::Key_Pause && !keyboard_recv(0x38) && !keyboard_recv(0x138)) { if (event->key() == Qt::Key_Pause && !keyboard_recv(0x38) && !keyboard_recv(0x138)) {

View File

@@ -174,7 +174,7 @@ void WindowsRawInputFilter::keyboard_handle(PRAWINPUT raw)
RAWKEYBOARD rawKB = raw->data.keyboard; RAWKEYBOARD rawKB = raw->data.keyboard;
scancode = rawKB.MakeCode; scancode = rawKB.MakeCode;
if (kbd_req_capture && !mouse_capture && !video_fullscreen) if (kbd_req_capture && !mouse_capture)
return; return;
/* If it's not a scan code that starts with 0xE1 */ /* If it's not a scan code that starts with 0xE1 */