diff --git a/src/config.cc b/src/config.cc index 23f5ad292..f4e710627 100644 --- a/src/config.cc +++ b/src/config.cc @@ -215,8 +215,8 @@ Preferences::Preferences(): enableMainWindowHotkey( true ), enableClipboardHotkey( true ), #endif - mainWindowHotkey( QKeySequence( "Ctrl+F11,F11" ) ), - clipboardHotkey( QKeySequence( "Ctrl+C,C" ) ), + mainWindowHotkey( QKeySequence( "Ctrl+F11, Ctrl+F11" ) ), + clipboardHotkey( QKeySequence( "Ctrl+C, Ctrl+C" ) ), startWithScanPopupOn( false ), enableScanPopupModifiers( false ), scanPopupModifiers( 0 ), diff --git a/src/ui/preferences.cc b/src/ui/preferences.cc index 5ac6d1eaa..5223b3c1b 100644 --- a/src/ui/preferences.cc +++ b/src/ui/preferences.cc @@ -205,11 +205,18 @@ Preferences::Preferences( QWidget * parent, Config::Class & cfg_ ): ui.darkMode->hide(); #endif + /// Hotkey Tab ui.enableMainWindowHotkey->setChecked( p.enableMainWindowHotkey ); ui.mainWindowHotkey->setKeySequence( p.mainWindowHotkey ); ui.enableClipboardHotkey->setChecked( p.enableClipboardHotkey ); ui.clipboardHotkey->setKeySequence( p.clipboardHotkey ); +#if QT_VERSION >= QT_VERSION_CHECK( 6, 5, 0 ) + // Bound by current global hotkey implementations + ui.mainWindowHotkey->setMaximumSequenceLength( 2 ); + ui.clipboardHotkey->setMaximumSequenceLength( 2 ); +#endif + ui.startWithScanPopupOn->setChecked( p.startWithScanPopupOn ); ui.enableScanPopupModifiers->setChecked( p.enableScanPopupModifiers );