diff --git a/CMakeLists.txt b/CMakeLists.txt index 0251a17..6f2f071 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ #[===========================================================================[ Virtual MIDI Piano Keyboard -Copyright (C) 2008-2023 Pedro Lopez-Cabanillas +Copyright (C) 2008-2024 Pedro Lopez-Cabanillas 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 . 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/" diff --git a/ChangeLog b/ChangeLog index 54658d1..fdbfe56 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2024-08-04 + * Fix for GH ticket #27: Enable F10 key in Windows when using native filters + 2023-12-30 * Release 0.9.0 diff --git a/cmake_admin/DeploymentUtils.cmake b/cmake_admin/DeploymentUtils.cmake index 5d1b771..b3a654d 100644 --- a/cmake_admin/DeploymentUtils.cmake +++ b/cmake_admin/DeploymentUtils.cmake @@ -39,7 +39,6 @@ if (WIN32 AND WINDEPLOYQT_EXECUTABLE) COMMAND "${WINDEPLOYQT_EXECUTABLE}" #--verbose=2 "-network" - "-no-angle" "-no-opengl-sw" "$" COMMENT "Running windeployqt..." diff --git a/src/nativefilter.cpp b/src/nativefilter.cpp index c5dece2..acdd4cb 100644 --- a/src/nativefilter.cpp +++ b/src/nativefilter.cpp @@ -1,6 +1,6 @@ /* MIDI Virtual Piano Keyboard - Copyright (C) 2008-2023, Pedro Lopez-Cabanillas + Copyright (C) 2008-2024, Pedro Lopez-Cabanillas 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(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