Apply "Keyboard requires capture" also in full screen mode, fixes #2781.
This commit is contained in:
@@ -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)) {
|
||||||
|
|||||||
@@ -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 */
|
||||||
|
|||||||
Reference in New Issue
Block a user