Formatting
This commit is contained in:
@@ -93,10 +93,12 @@ bool GlobalShortcutGrabber::event(QEvent *e) {
|
||||
if (e->type() == QEvent::ShortcutOverride) {
|
||||
QKeyEvent *ke = static_cast<QKeyEvent*>(e);
|
||||
|
||||
if (modifier_keys_.contains(ke->key()))
|
||||
if (modifier_keys_.contains(ke->key())) {
|
||||
ret_ = QKeySequence(ke->modifiers());
|
||||
else
|
||||
}
|
||||
else {
|
||||
ret_ = QKeySequence(ke->modifiers() | ke->key());
|
||||
}
|
||||
|
||||
UpdateText();
|
||||
|
||||
|
||||
@@ -93,16 +93,19 @@ GlobalShortcutsManager::GlobalShortcutsManager(QWidget *parent)
|
||||
#endif
|
||||
|
||||
#ifdef Q_OS_MACOS
|
||||
if (!system_backend_)
|
||||
if (!system_backend_) {
|
||||
system_backend_ = new GlobalShortcutsBackendMacOS(this);
|
||||
}
|
||||
#endif
|
||||
#ifdef Q_OS_WIN
|
||||
if (!system_backend_)
|
||||
if (!system_backend_) {
|
||||
system_backend_ = new GlobalShortcutsBackendSystem(this);
|
||||
}
|
||||
#endif
|
||||
#ifdef HAVE_X11_GLOBALSHORTCUTS
|
||||
if (!system_backend_ && IsX11Available())
|
||||
if (!system_backend_ && IsX11Available()) {
|
||||
system_backend_ = new GlobalShortcutsBackendSystem(this);
|
||||
}
|
||||
#endif
|
||||
|
||||
ReloadSettings();
|
||||
|
||||
Reference in New Issue
Block a user