mirror of
https://github.com/KDE/konsole.git
synced 2026-01-05 05:38:08 -05:00
This change removes some application attributes that are not necessary anymore (like disabling the global menu bar) or make Konsole behave slightly different when used from a KPart (e.g. inside Kate), and changes some keyboard shortcuts around (mainly using Command instead of Ctrl+Shift now.) Unfortunately this does not resolve the requirement for the special keytab file for macOS; it looks like Qt does something funny with the QKeyEvents here: on Linux these have a `text` attribute set to e.g. `\u0003` for `^C`, that attribute is empty on macOS. Note this could impact shortcut changes on non-macOS systems.
29 lines
473 B
C++
29 lines
473 B
C++
/*
|
|
SPDX-FileCopyrightText: 2015 René J.V. Bertin <rjvbertin@gmail.com>
|
|
|
|
SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
|
|
#ifndef SHORTCUT_H
|
|
#define SHORTCUT_H
|
|
|
|
#include <qnamespace.h>
|
|
|
|
namespace Konsole
|
|
{
|
|
/**
|
|
* Platform-specific main shortcut "opcode":
|
|
*/
|
|
enum Modifier {
|
|
#ifdef Q_OS_MACOS
|
|
// Use plain Command key for shortcuts
|
|
ACCEL = Qt::CTRL,
|
|
#else
|
|
// Use Ctrl+Shift for shortcuts
|
|
ACCEL = Qt::CTRL | Qt::SHIFT,
|
|
#endif
|
|
};
|
|
}
|
|
|
|
#endif // SHORTCUT_H
|