-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix for GH ticket #27: Enable F10 key in Windows when using native fi…
…lters
- Loading branch information
Showing
4 changed files
with
10 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#[===========================================================================[ | ||
Virtual MIDI Piano Keyboard | ||
Copyright (C) 2008-2023 Pedro Lopez-Cabanillas <[email protected]> | ||
Copyright (C) 2008-2024 Pedro Lopez-Cabanillas <[email protected]> | ||
This program is free software; you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
|
@@ -19,7 +19,7 @@ with this program; If not, see <http://www.gnu.org/licenses/>. | |
cmake_minimum_required(VERSION 3.16) | ||
|
||
project( VMPK | ||
VERSION 0.9.0 | ||
VERSION 0.9.1 | ||
LANGUAGES CXX | ||
DESCRIPTION "Virtual MIDI Piano Keyboard" | ||
HOMEPAGE_URL "https://vmpk.sourceforge.io/" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
MIDI Virtual Piano Keyboard | ||
Copyright (C) 2008-2023, Pedro Lopez-Cabanillas <[email protected]> | ||
Copyright (C) 2008-2024, Pedro Lopez-Cabanillas <[email protected]> | ||
This program is free software; you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
|
@@ -105,12 +105,13 @@ bool NativeFilter::nativeEventFilter(const QByteArray &eventType, void *message, | |
#if defined(Q_OS_WIN) | ||
bool isRepeat = false; | ||
MSG* msg = static_cast<MSG *>(message); | ||
if (msg->message == WM_KEYDOWN || msg->message == WM_KEYUP) { | ||
if (msg->message == WM_KEYDOWN || msg->message == WM_KEYUP || | ||
msg->message == WM_SYSKEYDOWN || msg->message == WM_SYSKEYUP) { | ||
int keycode = HIWORD(msg->lParam) & 0xff; | ||
isRepeat = (msg->message == WM_KEYDOWN) && | ||
isRepeat = (msg->message == WM_KEYDOWN || msg->message == WM_SYSKEYDOWN) && | ||
((HIWORD(msg->lParam) & 0x4000) != 0); | ||
if (!isRepeat) { | ||
if ( msg->message == WM_KEYDOWN ) | ||
if ( msg->message == WM_KEYDOWN || msg->message == WM_SYSKEYDOWN ) | ||
return m_handler->handleKeyPressed(keycode); | ||
//qDebug() << "key pressed:" << keycode; | ||
else | ||
|