File indexing completed on 2024-04-21 05:51:27
0001 /* 0002 SPDX-FileCopyrightText: 2015 René J.V. Bertin <rjvbertin@gmail.com> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef SHORTCUT_H 0008 #define SHORTCUT_H 0009 0010 #include <qnamespace.h> 0011 0012 namespace Konsole 0013 { 0014 /** 0015 * Platform-specific main shortcut "opcode": 0016 */ 0017 enum Modifier { 0018 #ifdef Q_OS_MACOS 0019 // Use plain Command key for shortcuts 0020 ACCEL = Qt::CTRL, 0021 #else 0022 // Use Ctrl+Shift for shortcuts 0023 ACCEL = Qt::CTRL | Qt::SHIFT, 0024 #endif 0025 }; 0026 } 0027 0028 #endif // SHORTCUT_H