- 25 Jan, 2017 1 commit
-
-
Martin Flöser authored
Summary: So far we didn't trigger modifier-only-shortcuts when capslock was enabled. In fact we even ensured that the shortcuts did not trigger. This seems not to be what our users expect. Meta should still trigger if capslock is on. This change modifies the logic to determine which modifier is currently pressed by using the modifiersRelevantForGlobalShortcuts. The difference to the "normal" modifiers is that this excludes capslock from modifiers and excludes consumed modifiers. The latter is not really relevant as modifier-only-shortcuts do not trigger if multiple keys are pressed, which is required to have a modifier consumed. BUG: 375355 FIXED-IN: 5.8.6 Test Plan: Only with adjusted autotest Reviewers: #kwin, #plasma Subscribers: plasma-devel, kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D4241
-
- 22 Jan, 2017 1 commit
-
-
Martin Flöser authored
This extends the testCapsLock to ensure that modifier only shortcut trigger when capslock is enabled. So far the test only ensured that capslock doesn't trigger the shift modifier only shortcut. As the test shows currently when capslock is on, the meta key doesn't trigger any more. CCBUG: 375355
-
- 06 Oct, 2016 2 commits
-
-
Martin Flöser authored
Summary: KWin supports blocking global shortcuts when a window is active through window specific rules. This change ensures that the modifier only shortcuts also honor the blocking of global shortcuts. If global shortcuts are disabled, they won't trigger any more. BUG: 370146 FIXED-IN: 5.8.1 Reviewers: #kwin, #plasma Subscribers: plasma-devel, kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D2952
-
Martin Flöser authored
KWin supports disabling global shortcuts while a specific window is active through window rules. This blocks global shortcuts but does not block the modifier-only-shortcuts as the new test case shows. CCBUG: 370146
-
- 19 Aug, 2016 1 commit
-
-
Martin Flöser authored
Summary: If caps lock is on the shift key should not trigger. Similar pressing caps lock should neither on activation press nor on deactivation press trigger the shortcut. Related to that are latched modifiers aka sticky modifiers: if the modifier is still on after releasing the key the shortcut should not trigger. We must assume the user wanted to use the modifier to activate the modifier, not to activate the shortcut. This change ensures that we don't track for modifier only shortcuts if a modifier is active before press or after release. The added test case demonstrates for caps lock, latched modifiers is currently still untested. (Needs a way to mock it). Test Plan: See test case for caps lock. Reviewers: #kwin, #plasma Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D2467
-
- 18 Aug, 2016 1 commit
-
-
Martin Flöser authored
Summary: The Xkb class loads keyboard layouts from the users configuration. This makes tests fail locally if the user has a layout which behaves differently to the one the test expects. E.g. on a German layout the right alt key is different to the one of US layout. In order to have a more stable test base the env variable KWIN_XKB_DEFAULT_KEYMAP forces the loading of the default keymap, thus tests have a common layout set. Reviewers: #kwin, #plasma_on_wayland Subscribers: plasma-devel, kwin Tags: #plasma_on_wayland, #kwin Differential Revision: https://phabricator.kde.org/D2466
-
- 16 Aug, 2016 2 commits
-
-
Martin Flöser authored
If the screen is locked the modifier only shortcuts should not trigger. Also if the screen gets locked while a modifier is hold the shortcuts should not trigger. Reviewed-By: bshah
-
Martin Flöser authored
Currently expected failures as modifier only shortcuts don't check for locked screen yet.
-
- 15 Aug, 2016 1 commit
-
-
Martin Flöser authored
Summary: If the user clicked a pointer button or scrolled a pointer axis the held modifier was most likely intended to modify the pointer event. Thus the modifier only shortcut should not be triggered. Reviewers: #kwin, #plasma_on_wayland Subscribers: plasma-devel, kwin Tags: #plasma_on_wayland, #kwin Differential Revision: https://phabricator.kde.org/D2435
-
- 13 Aug, 2016 3 commits
-
-
Martin Flöser authored
If a pointer axis is scrolled while a modifier is hold, the modifier only shortcuts should not trigger. The user wanted to use the modifier for the pointer axis. This is not implemented yet, thus all is QEXPECT_FAIL.
-
Martin Flöser authored
If a pointer button is pressed or gets pressed while a modifier is hold, the modifier only shortcuts should not trigger. The user wanted to use the modifier for the pointer button. This is not implemented yet, thus all is QEXPECT_FAIL.
-
Martin Flöser authored
This test verifies the functionality of modifier only shortcut activation. The base test case uses a helper object which is exported to DBus and has a slot which can get triggered. The test configures the individual modifiers to call that DBus method when the shortcut is triggered. It simulates pressing the modifier and verifies the DBus method was invoked or not.
-