Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixes #29021
  • Loading branch information
YoannQDQ authored and nyalldawson committed Jan 17, 2023
1 parent 490a446 commit a4212ee
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/app/main.cpp
Expand Up @@ -891,6 +891,16 @@ int main( int argc, char *argv[] )
// Initialize the application and the translation stuff
/////////////////////////////////////////////////////////////////////


#if defined(Q_OS_WIN)
// FIXES #29021
// Prevent Qt from treating the AltGr key as Ctrl+Alt on Windows,
// which causes shortcuts to be fired instead of entering some characters (eg "}", "|")
// on some keyboard layouts
qputenv( "QT_QPA_PLATFORM", "windows:altgr" );
#endif


#if defined(Q_OS_UNIX) && !defined(Q_OS_MAC) && !defined(ANDROID)
bool myUseGuiFlag = nullptr != getenv( "DISPLAY" );
#else
Expand Down

0 comments on commit a4212ee

Please sign in to comment.