37 modKeys <<
"caps" <<
"lshift" <<
"lctrl" <<
"lalt" <<
"lwin";
39 modNames <<
"Caps Lock" <<
"Shift" <<
"Control (⌃)" <<
"Option (⌥)" <<
"Command (⌘)";
41 modNames <<
"Caps Lock" <<
"Shift" <<
"Control" <<
"Alt" <<
"Super";
44 foreach(
const QString& name,
modNames){
68 if(settings.
value(
"osxCmdSwap").toBool()){
70 settings.
remove(
"osxCmdSwap");
121 return "r" + left.mid(1);
125 QHash<QString, QString> newMods;
static KeyMap::Layout layout()
void setValue(const QString &key, const QVariant &value)
static void set(const QString &key, const QVariant &value)
static QString globalRemap(const QString &key)
QVariant value(const QString &key, const QVariant &defaultValue=QVariant()) const
static void setGlobalRemap(const QHash< QString, QString > keyToActual)
static QStringList layoutNames()
KeyMap::Layout selected() const
static Layout getLayout(const QString &name)
void remove(const QString &key)
static void saveGlobalRemap()
static void loadGlobalRemap()