Skip to content

Commit

Permalink
Only use Qt's Deselect shortcut on Linux
Browse files Browse the repository at this point in the history
Because on all other platforms it's apparently undefined, leading to
Emscripten not having it assigned. It was already set to Ctrl+Shift+A on
Windows and macOS, now it's also set tha way on Android and Emscripten,
basically.
  • Loading branch information
askmeaboutlo0m committed Nov 9, 2024
1 parent 25bac3a commit 8a0ac03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/desktop/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5154,8 +5154,8 @@ void MainWindow::setupActions()
//
// Select menu
//
// Deselect is not defined on macOS and Windows.
#if defined(Q_OS_MACOS) || defined(Q_OS_WIN)
// Deselect is not defined on most systems.
#ifndef Q_OS_LINUX
# define DESELECT_SHORTCUT "Ctrl+Shift+A"
#else
# define DESELECT_SHORTCUT QKeySequence::Deselect
Expand Down

0 comments on commit 8a0ac03

Please sign in to comment.