2020-08-02 22:22:19 +00:00
|
|
|
/*
|
|
|
|
KWin - the KDE window manager
|
|
|
|
This file is part of the KDE project.
|
2007-11-27 19:40:25 +00:00
|
|
|
|
2020-08-02 22:22:19 +00:00
|
|
|
SPDX-FileCopyrightText: 1999, 2000 Matthias Ettrich <ettrich@kde.org>
|
|
|
|
SPDX-FileCopyrightText: 2003 Lubos Lunak <l.lunak@kde.org>
|
2007-11-27 19:40:25 +00:00
|
|
|
|
2020-08-02 22:22:19 +00:00
|
|
|
SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
*/
|
2007-11-27 19:40:25 +00:00
|
|
|
|
2008-12-25 03:33:42 +00:00
|
|
|
// This file is #included from within:
|
|
|
|
// Workspace::initShortcuts()
|
|
|
|
// {
|
2007-11-27 19:40:25 +00:00
|
|
|
|
2008-12-25 03:33:42 +00:00
|
|
|
// Some shortcuts have Tarzan-speech like names, they need extra
|
|
|
|
// normal human descriptions with DEF2() the others can use DEF()
|
2011-02-16 18:23:54 +00:00
|
|
|
// new DEF3 allows to pass data to the action, replacing the %1 argument in the name
|
|
|
|
|
|
|
|
#define DEF2( name, descr, key, fnSlot ) \
|
2013-09-09 07:41:37 +00:00
|
|
|
initShortcut(QStringLiteral(name), i18n(descr), key, &Workspace::fnSlot);
|
2011-02-16 18:23:54 +00:00
|
|
|
|
|
|
|
#define DEF( name, key, fnSlot ) \
|
2013-09-09 07:41:37 +00:00
|
|
|
initShortcut(QStringLiteral(name), i18n(name), key, &Workspace::fnSlot);
|
2011-02-16 18:23:54 +00:00
|
|
|
|
|
|
|
#define DEF3( name, key, fnSlot, value ) \
|
2013-09-09 07:41:37 +00:00
|
|
|
initShortcut(QStringLiteral(name).arg(value), i18n(name, value), key, &Workspace::fnSlot, value);
|
2011-02-16 18:23:54 +00:00
|
|
|
|
2017-07-18 19:12:37 +00:00
|
|
|
#define DEF4( name, descr, key, functor ) \
|
|
|
|
initShortcut(QStringLiteral(name), i18n(descr), key, functor);
|
|
|
|
|
2017-07-21 14:10:14 +00:00
|
|
|
#define DEF5( name, key, functor, value ) \
|
|
|
|
initShortcut(QStringLiteral(name).arg(value), i18n(name, value), key, functor, value);
|
|
|
|
|
2017-09-24 08:10:52 +00:00
|
|
|
#define DEF6( name, key, target, fnSlot ) \
|
|
|
|
initShortcut(QStringLiteral(name), i18n(name), key, target, &fnSlot);
|
|
|
|
|
2011-02-16 18:23:54 +00:00
|
|
|
|
2011-01-30 14:34:42 +00:00
|
|
|
DEF(I18N_NOOP("Window Operations Menu"),
|
2013-09-09 07:41:37 +00:00
|
|
|
Qt::ALT + Qt::Key_F3, slotWindowOperations);
|
2011-01-30 14:34:42 +00:00
|
|
|
DEF2("Window Close", I18N_NOOP("Close Window"),
|
2013-09-09 07:41:37 +00:00
|
|
|
Qt::ALT + Qt::Key_F4, slotWindowClose);
|
2011-01-30 14:34:42 +00:00
|
|
|
DEF2("Window Maximize", I18N_NOOP("Maximize Window"),
|
Expose more default window management shortcuts
Summary:
KWin's window management powers are not as discoverable as they could be--particularly tiling, which by default has no visible UI and no keyboard shortcuts. Resolving this issue is highly relevant to {T6831}.
This patch re-assigns the {key Meta arrowkeys} shortcuts that are currently used for `move zoomed area` (which are pretty esoteric, infrequently-used actions), adding {key ctrl} to their shortcuts. This allows us to use their valuable {key Meta arrowkeys} for more useful and commonly-used window management actions:
- {key Meta Left}: quick tile window to the left
- {key Meta Right}: quick tile window to the right
- {key Meta Up}: quick-tile window to the top
- {key Meta Down}: quick-tile the window to the bottom
The patch also sets some default shortctuts for minimize and maximize:
- {key Meta PageDown}: minimize window
- {key Meta PageUp}: maximize/de-maximize the window
Test Plan:
Do a clean build
`make test` (no new test failures)
Reboot
Create and log into a new user account
- {key meta up} tiles the active window to the top
- {key meta down} tiles the active window to the bottom
- {key meta left} tiles the active window to the left
- {key meta right} tiles the active window to the right
- {key meta PageDown} minimizes the active window
- {key meta PageUp} maximizes and de-maximizes the active window
- {key meta ctrl up} moves the zoomed area up
- {key meta ctrl down} moves the zoomed area down
- {key meta ctrl left} moves the zoomed area to the left
- {key meta ctrl right} moves the zoomed area to the right
Reviewers: #kwin, #plasma, romangg
Reviewed By: #kwin, #plasma, romangg
Subscribers: mart, romangg, broulik, jnoack, kwin
Tags: #kwin
Differential Revision: https://phabricator.kde.org/D11377
2018-03-16 04:37:48 +00:00
|
|
|
Qt::META + Qt::Key_PageUp, slotWindowMaximize);
|
2011-01-30 14:34:42 +00:00
|
|
|
DEF2("Window Maximize Vertical", I18N_NOOP("Maximize Window Vertically"),
|
2013-09-09 07:41:37 +00:00
|
|
|
0, slotWindowMaximizeVertical);
|
2011-01-30 14:34:42 +00:00
|
|
|
DEF2("Window Maximize Horizontal", I18N_NOOP("Maximize Window Horizontally"),
|
2013-09-09 07:41:37 +00:00
|
|
|
0, slotWindowMaximizeHorizontal);
|
2011-01-30 14:34:42 +00:00
|
|
|
DEF2("Window Minimize", I18N_NOOP("Minimize Window"),
|
Expose more default window management shortcuts
Summary:
KWin's window management powers are not as discoverable as they could be--particularly tiling, which by default has no visible UI and no keyboard shortcuts. Resolving this issue is highly relevant to {T6831}.
This patch re-assigns the {key Meta arrowkeys} shortcuts that are currently used for `move zoomed area` (which are pretty esoteric, infrequently-used actions), adding {key ctrl} to their shortcuts. This allows us to use their valuable {key Meta arrowkeys} for more useful and commonly-used window management actions:
- {key Meta Left}: quick tile window to the left
- {key Meta Right}: quick tile window to the right
- {key Meta Up}: quick-tile window to the top
- {key Meta Down}: quick-tile the window to the bottom
The patch also sets some default shortctuts for minimize and maximize:
- {key Meta PageDown}: minimize window
- {key Meta PageUp}: maximize/de-maximize the window
Test Plan:
Do a clean build
`make test` (no new test failures)
Reboot
Create and log into a new user account
- {key meta up} tiles the active window to the top
- {key meta down} tiles the active window to the bottom
- {key meta left} tiles the active window to the left
- {key meta right} tiles the active window to the right
- {key meta PageDown} minimizes the active window
- {key meta PageUp} maximizes and de-maximizes the active window
- {key meta ctrl up} moves the zoomed area up
- {key meta ctrl down} moves the zoomed area down
- {key meta ctrl left} moves the zoomed area to the left
- {key meta ctrl right} moves the zoomed area to the right
Reviewers: #kwin, #plasma, romangg
Reviewed By: #kwin, #plasma, romangg
Subscribers: mart, romangg, broulik, jnoack, kwin
Tags: #kwin
Differential Revision: https://phabricator.kde.org/D11377
2018-03-16 04:37:48 +00:00
|
|
|
Qt::META + Qt::Key_PageDown, slotWindowMinimize);
|
2011-01-30 14:34:42 +00:00
|
|
|
DEF2("Window Shade", I18N_NOOP("Shade Window"),
|
2013-09-09 07:41:37 +00:00
|
|
|
0, slotWindowShade);
|
2011-01-30 14:34:42 +00:00
|
|
|
DEF2("Window Move", I18N_NOOP("Move Window"),
|
2013-09-09 07:41:37 +00:00
|
|
|
0, slotWindowMove);
|
2011-01-30 14:34:42 +00:00
|
|
|
DEF2("Window Resize", I18N_NOOP("Resize Window"),
|
2013-09-09 07:41:37 +00:00
|
|
|
0, slotWindowResize);
|
2011-01-30 14:34:42 +00:00
|
|
|
DEF2("Window Raise", I18N_NOOP("Raise Window"),
|
2013-09-09 07:41:37 +00:00
|
|
|
0, slotWindowRaise);
|
2011-01-30 14:34:42 +00:00
|
|
|
DEF2("Window Lower", I18N_NOOP("Lower Window"),
|
2013-09-09 07:41:37 +00:00
|
|
|
0, slotWindowLower);
|
2011-01-30 14:34:42 +00:00
|
|
|
DEF(I18N_NOOP("Toggle Window Raise/Lower"),
|
2013-09-09 07:41:37 +00:00
|
|
|
0, slotWindowRaiseOrLower);
|
2011-01-30 14:34:42 +00:00
|
|
|
DEF2("Window Fullscreen", I18N_NOOP("Make Window Fullscreen"),
|
2013-09-09 07:41:37 +00:00
|
|
|
0, slotWindowFullScreen);
|
2011-01-30 14:34:42 +00:00
|
|
|
DEF2("Window No Border", I18N_NOOP("Hide Window Border"),
|
2013-09-09 07:41:37 +00:00
|
|
|
0, slotWindowNoBorder);
|
2011-01-30 14:34:42 +00:00
|
|
|
DEF2("Window Above Other Windows", I18N_NOOP("Keep Window Above Others"),
|
2013-09-09 07:41:37 +00:00
|
|
|
0, slotWindowAbove);
|
2011-01-30 14:34:42 +00:00
|
|
|
DEF2("Window Below Other Windows", I18N_NOOP("Keep Window Below Others"),
|
2013-09-09 07:41:37 +00:00
|
|
|
0, slotWindowBelow);
|
2011-01-30 14:34:42 +00:00
|
|
|
DEF(I18N_NOOP("Activate Window Demanding Attention"),
|
2013-09-09 07:41:37 +00:00
|
|
|
Qt::CTRL + Qt::ALT + Qt::Key_A, slotActivateAttentionWindow);
|
2011-01-30 14:34:42 +00:00
|
|
|
DEF(I18N_NOOP("Setup Window Shortcut"),
|
2013-09-09 07:41:37 +00:00
|
|
|
0, slotSetupWindowShortcut);
|
2011-01-30 14:34:42 +00:00
|
|
|
DEF2("Window Pack Right", I18N_NOOP("Pack Window to the Right"),
|
2013-09-09 07:41:37 +00:00
|
|
|
0, slotWindowPackRight);
|
2011-01-30 14:34:42 +00:00
|
|
|
DEF2("Window Pack Left", I18N_NOOP("Pack Window to the Left"),
|
2013-09-09 07:41:37 +00:00
|
|
|
0, slotWindowPackLeft);
|
2011-01-30 14:34:42 +00:00
|
|
|
DEF2("Window Pack Up", I18N_NOOP("Pack Window Up"),
|
2013-09-09 07:41:37 +00:00
|
|
|
0, slotWindowPackUp);
|
2011-01-30 14:34:42 +00:00
|
|
|
DEF2("Window Pack Down", I18N_NOOP("Pack Window Down"),
|
2013-09-09 07:41:37 +00:00
|
|
|
0, slotWindowPackDown);
|
2011-01-30 14:34:42 +00:00
|
|
|
DEF2("Window Grow Horizontal", I18N_NOOP("Pack Grow Window Horizontally"),
|
2013-09-09 07:41:37 +00:00
|
|
|
0, slotWindowGrowHorizontal);
|
2011-01-30 14:34:42 +00:00
|
|
|
DEF2("Window Grow Vertical", I18N_NOOP("Pack Grow Window Vertically"),
|
2013-09-09 07:41:37 +00:00
|
|
|
0, slotWindowGrowVertical);
|
2011-01-30 14:34:42 +00:00
|
|
|
DEF2("Window Shrink Horizontal", I18N_NOOP("Pack Shrink Window Horizontally"),
|
2013-09-09 07:41:37 +00:00
|
|
|
0, slotWindowShrinkHorizontal);
|
2011-01-30 14:34:42 +00:00
|
|
|
DEF2("Window Shrink Vertical", I18N_NOOP("Pack Shrink Window Vertically"),
|
2013-09-09 07:41:37 +00:00
|
|
|
0, slotWindowShrinkVertical);
|
2017-07-18 19:12:37 +00:00
|
|
|
DEF4("Window Quick Tile Left", I18N_NOOP("Quick Tile Window to the Left"),
|
Expose more default window management shortcuts
Summary:
KWin's window management powers are not as discoverable as they could be--particularly tiling, which by default has no visible UI and no keyboard shortcuts. Resolving this issue is highly relevant to {T6831}.
This patch re-assigns the {key Meta arrowkeys} shortcuts that are currently used for `move zoomed area` (which are pretty esoteric, infrequently-used actions), adding {key ctrl} to their shortcuts. This allows us to use their valuable {key Meta arrowkeys} for more useful and commonly-used window management actions:
- {key Meta Left}: quick tile window to the left
- {key Meta Right}: quick tile window to the right
- {key Meta Up}: quick-tile window to the top
- {key Meta Down}: quick-tile the window to the bottom
The patch also sets some default shortctuts for minimize and maximize:
- {key Meta PageDown}: minimize window
- {key Meta PageUp}: maximize/de-maximize the window
Test Plan:
Do a clean build
`make test` (no new test failures)
Reboot
Create and log into a new user account
- {key meta up} tiles the active window to the top
- {key meta down} tiles the active window to the bottom
- {key meta left} tiles the active window to the left
- {key meta right} tiles the active window to the right
- {key meta PageDown} minimizes the active window
- {key meta PageUp} maximizes and de-maximizes the active window
- {key meta ctrl up} moves the zoomed area up
- {key meta ctrl down} moves the zoomed area down
- {key meta ctrl left} moves the zoomed area to the left
- {key meta ctrl right} moves the zoomed area to the right
Reviewers: #kwin, #plasma, romangg
Reviewed By: #kwin, #plasma, romangg
Subscribers: mart, romangg, broulik, jnoack, kwin
Tags: #kwin
Differential Revision: https://phabricator.kde.org/D11377
2018-03-16 04:37:48 +00:00
|
|
|
Qt::META + Qt::Key_Left, std::bind(&Workspace::quickTileWindow, this, QuickTileFlag::Left));
|
2017-07-18 19:12:37 +00:00
|
|
|
DEF4("Window Quick Tile Right", I18N_NOOP("Quick Tile Window to the Right"),
|
Expose more default window management shortcuts
Summary:
KWin's window management powers are not as discoverable as they could be--particularly tiling, which by default has no visible UI and no keyboard shortcuts. Resolving this issue is highly relevant to {T6831}.
This patch re-assigns the {key Meta arrowkeys} shortcuts that are currently used for `move zoomed area` (which are pretty esoteric, infrequently-used actions), adding {key ctrl} to their shortcuts. This allows us to use their valuable {key Meta arrowkeys} for more useful and commonly-used window management actions:
- {key Meta Left}: quick tile window to the left
- {key Meta Right}: quick tile window to the right
- {key Meta Up}: quick-tile window to the top
- {key Meta Down}: quick-tile the window to the bottom
The patch also sets some default shortctuts for minimize and maximize:
- {key Meta PageDown}: minimize window
- {key Meta PageUp}: maximize/de-maximize the window
Test Plan:
Do a clean build
`make test` (no new test failures)
Reboot
Create and log into a new user account
- {key meta up} tiles the active window to the top
- {key meta down} tiles the active window to the bottom
- {key meta left} tiles the active window to the left
- {key meta right} tiles the active window to the right
- {key meta PageDown} minimizes the active window
- {key meta PageUp} maximizes and de-maximizes the active window
- {key meta ctrl up} moves the zoomed area up
- {key meta ctrl down} moves the zoomed area down
- {key meta ctrl left} moves the zoomed area to the left
- {key meta ctrl right} moves the zoomed area to the right
Reviewers: #kwin, #plasma, romangg
Reviewed By: #kwin, #plasma, romangg
Subscribers: mart, romangg, broulik, jnoack, kwin
Tags: #kwin
Differential Revision: https://phabricator.kde.org/D11377
2018-03-16 04:37:48 +00:00
|
|
|
Qt::META + Qt::Key_Right, std::bind(&Workspace::quickTileWindow, this, QuickTileFlag::Right));
|
2017-07-18 19:12:37 +00:00
|
|
|
DEF4("Window Quick Tile Top", I18N_NOOP("Quick Tile Window to the Top"),
|
Expose more default window management shortcuts
Summary:
KWin's window management powers are not as discoverable as they could be--particularly tiling, which by default has no visible UI and no keyboard shortcuts. Resolving this issue is highly relevant to {T6831}.
This patch re-assigns the {key Meta arrowkeys} shortcuts that are currently used for `move zoomed area` (which are pretty esoteric, infrequently-used actions), adding {key ctrl} to their shortcuts. This allows us to use their valuable {key Meta arrowkeys} for more useful and commonly-used window management actions:
- {key Meta Left}: quick tile window to the left
- {key Meta Right}: quick tile window to the right
- {key Meta Up}: quick-tile window to the top
- {key Meta Down}: quick-tile the window to the bottom
The patch also sets some default shortctuts for minimize and maximize:
- {key Meta PageDown}: minimize window
- {key Meta PageUp}: maximize/de-maximize the window
Test Plan:
Do a clean build
`make test` (no new test failures)
Reboot
Create and log into a new user account
- {key meta up} tiles the active window to the top
- {key meta down} tiles the active window to the bottom
- {key meta left} tiles the active window to the left
- {key meta right} tiles the active window to the right
- {key meta PageDown} minimizes the active window
- {key meta PageUp} maximizes and de-maximizes the active window
- {key meta ctrl up} moves the zoomed area up
- {key meta ctrl down} moves the zoomed area down
- {key meta ctrl left} moves the zoomed area to the left
- {key meta ctrl right} moves the zoomed area to the right
Reviewers: #kwin, #plasma, romangg
Reviewed By: #kwin, #plasma, romangg
Subscribers: mart, romangg, broulik, jnoack, kwin
Tags: #kwin
Differential Revision: https://phabricator.kde.org/D11377
2018-03-16 04:37:48 +00:00
|
|
|
Qt::META + Qt::Key_Up, std::bind(&Workspace::quickTileWindow, this, QuickTileFlag::Top));
|
2017-07-18 19:12:37 +00:00
|
|
|
DEF4("Window Quick Tile Bottom", I18N_NOOP("Quick Tile Window to the Bottom"),
|
Expose more default window management shortcuts
Summary:
KWin's window management powers are not as discoverable as they could be--particularly tiling, which by default has no visible UI and no keyboard shortcuts. Resolving this issue is highly relevant to {T6831}.
This patch re-assigns the {key Meta arrowkeys} shortcuts that are currently used for `move zoomed area` (which are pretty esoteric, infrequently-used actions), adding {key ctrl} to their shortcuts. This allows us to use their valuable {key Meta arrowkeys} for more useful and commonly-used window management actions:
- {key Meta Left}: quick tile window to the left
- {key Meta Right}: quick tile window to the right
- {key Meta Up}: quick-tile window to the top
- {key Meta Down}: quick-tile the window to the bottom
The patch also sets some default shortctuts for minimize and maximize:
- {key Meta PageDown}: minimize window
- {key Meta PageUp}: maximize/de-maximize the window
Test Plan:
Do a clean build
`make test` (no new test failures)
Reboot
Create and log into a new user account
- {key meta up} tiles the active window to the top
- {key meta down} tiles the active window to the bottom
- {key meta left} tiles the active window to the left
- {key meta right} tiles the active window to the right
- {key meta PageDown} minimizes the active window
- {key meta PageUp} maximizes and de-maximizes the active window
- {key meta ctrl up} moves the zoomed area up
- {key meta ctrl down} moves the zoomed area down
- {key meta ctrl left} moves the zoomed area to the left
- {key meta ctrl right} moves the zoomed area to the right
Reviewers: #kwin, #plasma, romangg
Reviewed By: #kwin, #plasma, romangg
Subscribers: mart, romangg, broulik, jnoack, kwin
Tags: #kwin
Differential Revision: https://phabricator.kde.org/D11377
2018-03-16 04:37:48 +00:00
|
|
|
Qt::META + Qt::Key_Down, std::bind(&Workspace::quickTileWindow, this, QuickTileFlag::Bottom));
|
2017-07-18 19:12:37 +00:00
|
|
|
DEF4("Window Quick Tile Top Left", I18N_NOOP("Quick Tile Window to the Top Left"),
|
|
|
|
0, std::bind(&Workspace::quickTileWindow, this, QuickTileFlag::Top | QuickTileFlag::Left));
|
|
|
|
DEF4("Window Quick Tile Bottom Left", I18N_NOOP("Quick Tile Window to the Bottom Left"),
|
|
|
|
0, std::bind(&Workspace::quickTileWindow, this, QuickTileFlag::Bottom | QuickTileFlag::Left));
|
|
|
|
DEF4("Window Quick Tile Top Right", I18N_NOOP("Quick Tile Window to the Top Right"),
|
|
|
|
0, std::bind(&Workspace::quickTileWindow, this, QuickTileFlag::Top | QuickTileFlag::Right));
|
|
|
|
DEF4("Window Quick Tile Bottom Right", I18N_NOOP("Quick Tile Window to the Bottom Right"),
|
|
|
|
0, std::bind(&Workspace::quickTileWindow, this, QuickTileFlag::Bottom | QuickTileFlag::Right));
|
2017-07-20 04:58:35 +00:00
|
|
|
DEF4("Switch Window Up", I18N_NOOP("Switch to Window Above"),
|
|
|
|
Qt::META + Qt::ALT + Qt::Key_Up, std::bind(static_cast<void (Workspace::*)(Direction)>(&Workspace::switchWindow), this, DirectionNorth));
|
|
|
|
DEF4("Switch Window Down", I18N_NOOP("Switch to Window Below"),
|
|
|
|
Qt::META + Qt::ALT + Qt::Key_Down, std::bind(static_cast<void (Workspace::*)(Direction)>(&Workspace::switchWindow), this, DirectionSouth));
|
|
|
|
DEF4("Switch Window Right", I18N_NOOP("Switch to Window to the Right"),
|
|
|
|
Qt::META + Qt::ALT + Qt::Key_Right, std::bind(static_cast<void (Workspace::*)(Direction)>(&Workspace::switchWindow), this, DirectionEast));
|
|
|
|
DEF4("Switch Window Left", I18N_NOOP("Switch to Window to the Left"),
|
|
|
|
Qt::META + Qt::ALT + Qt::Key_Left, std::bind(static_cast<void (Workspace::*)(Direction)>(&Workspace::switchWindow), this, DirectionWest));
|
2011-08-19 19:53:30 +00:00
|
|
|
DEF2("Increase Opacity", I18N_NOOP("Increase Opacity of Active Window by 5 %"),
|
2013-09-09 07:41:37 +00:00
|
|
|
0, slotIncreaseWindowOpacity);
|
2011-08-19 19:53:30 +00:00
|
|
|
DEF2("Decrease Opacity", I18N_NOOP("Decrease Opacity of Active Window by 5 %"),
|
2013-09-09 07:41:37 +00:00
|
|
|
0, slotLowerWindowOpacity);
|
2011-01-30 14:34:42 +00:00
|
|
|
|
|
|
|
DEF2("Window On All Desktops", I18N_NOOP("Keep Window on All Desktops"),
|
2013-09-09 07:41:37 +00:00
|
|
|
0, slotWindowOnAllDesktops);
|
2011-02-16 18:23:54 +00:00
|
|
|
|
|
|
|
for (int i = 1; i < 21; ++i) {
|
2017-07-21 14:10:14 +00:00
|
|
|
DEF5(I18N_NOOP("Window to Desktop %1"), 0, std::bind(&Workspace::slotWindowToDesktop, this, i), i);
|
2011-02-16 18:23:54 +00:00
|
|
|
}
|
2013-09-09 07:41:37 +00:00
|
|
|
DEF(I18N_NOOP("Window to Next Desktop"), 0, slotWindowToNextDesktop);
|
|
|
|
DEF(I18N_NOOP("Window to Previous Desktop"), 0, slotWindowToPreviousDesktop);
|
2020-09-05 04:43:49 +00:00
|
|
|
DEF(I18N_NOOP("Window One Desktop to the Right"), Qt::META + Qt::CTRL + Qt::SHIFT + Qt::Key_Right, slotWindowToDesktopRight);
|
|
|
|
DEF(I18N_NOOP("Window One Desktop to the Left"), Qt::META + Qt::CTRL + Qt::SHIFT + Qt::Key_Left, slotWindowToDesktopLeft);
|
|
|
|
DEF(I18N_NOOP("Window One Desktop Up"), Qt::META + Qt::CTRL + Qt::SHIFT + Qt::Key_Up, slotWindowToDesktopUp);
|
|
|
|
DEF(I18N_NOOP("Window One Desktop Down"), Qt::META + Qt::CTRL + Qt::SHIFT + Qt::Key_Down, slotWindowToDesktopDown);
|
2011-02-16 18:23:54 +00:00
|
|
|
|
|
|
|
for (int i = 0; i < 8; ++i) {
|
2013-09-09 07:41:37 +00:00
|
|
|
DEF3(I18N_NOOP("Window to Screen %1"), 0, slotWindowToScreen, i);
|
2011-02-16 18:23:54 +00:00
|
|
|
}
|
2020-09-05 04:43:49 +00:00
|
|
|
DEF(I18N_NOOP("Window to Next Screen"), Qt::META + Qt::SHIFT + Qt::Key_Right, slotWindowToNextScreen);
|
|
|
|
DEF(I18N_NOOP("Window to Previous Screen"), Qt::META + Qt::SHIFT + Qt::Key_Left, slotWindowToPrevScreen);
|
2019-03-26 17:49:31 +00:00
|
|
|
DEF(I18N_NOOP("Show Desktop"), Qt::META + Qt::Key_D, slotToggleShowDesktop);
|
2011-01-30 14:34:42 +00:00
|
|
|
|
2011-02-16 18:23:54 +00:00
|
|
|
for (int i = 0; i < 8; ++i) {
|
2013-09-09 07:41:37 +00:00
|
|
|
DEF3(I18N_NOOP("Switch to Screen %1"), 0, slotSwitchToScreen, i);
|
2011-02-16 18:23:54 +00:00
|
|
|
}
|
|
|
|
|
2013-09-09 07:41:37 +00:00
|
|
|
DEF(I18N_NOOP("Switch to Next Screen"), 0, slotSwitchToNextScreen);
|
|
|
|
DEF(I18N_NOOP("Switch to Previous Screen"), 0, slotSwitchToPrevScreen);
|
2011-01-30 14:34:42 +00:00
|
|
|
|
2013-09-09 07:41:37 +00:00
|
|
|
DEF(I18N_NOOP("Kill Window"), Qt::CTRL + Qt::ALT + Qt::Key_Escape, slotKillWindow);
|
2019-07-02 18:28:45 +00:00
|
|
|
DEF6(I18N_NOOP("Suspend Compositing"), Qt::SHIFT + Qt::ALT + Qt::Key_F12, Compositor::self(), Compositor::toggleCompositing);
|
2017-09-24 08:10:52 +00:00
|
|
|
DEF6(I18N_NOOP("Invert Screen Colors"), 0, kwinApp()->platform(), Platform::invertScreen);
|
2011-01-30 14:34:42 +00:00
|
|
|
|
2007-04-29 17:35:43 +00:00
|
|
|
#undef DEF
|
|
|
|
#undef DEF2
|
2012-04-30 20:31:04 +00:00
|
|
|
#undef DEF3
|
2019-08-11 10:09:05 +00:00
|
|
|
#undef DEF4
|
|
|
|
#undef DEF5
|
|
|
|
#undef DEF6
|
2008-12-25 03:33:42 +00:00
|
|
|
|
|
|
|
// }
|