Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions src/controllers/keyboard/keyboardeventfilter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,10 @@ bool KeyboardEventFilter::eventFilter(QObject*, QEvent* e) {
#ifndef __APPLE__
} else {
// getKeySeq() returns empty string if the press was a modifier only
if ((ke->modifiers() & Qt::AltModifier) && !m_altPressedWithoutKey) {
// on Linux pressing Alt sends Alt+Qt::Key_Alt, so checking for
// Alt modifier is sufficient.
// Activate this in case there are issues on Windows
// || ke->key() == Qt::Key_Alt) {
// On most system Alt sends Alt + Qt::Key_Alt, but with Qt 6.9 (on Linux)
// this changed apparently so that it's just Qt::Key_Alt
if (((ke->modifiers() & Qt::AltModifier) || ke->key() == Qt::Key_Alt) &&
!m_altPressedWithoutKey) {
m_altPressedWithoutKey = true;
}
#endif
Expand Down
Loading