Files
konsole/src/Shortcut_p.h
Georg Gadinger 7f41a38371 Improve usability on macOS including altering shortcuts
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.
2022-06-21 00:10:44 +00:00

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