From bd1408d87ad8286239294f67c72143c680a69657 Mon Sep 17 00:00:00 2001 From: Rajveer Aujla Date: Tue, 24 Jan 2023 11:56:39 +0000 Subject: [PATCH] Added feature document for active screen hotkeys --- .../keystrokes-on-active-screen-only.feature | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 doc/newsfragments/keystrokes-on-active-screen-only.feature diff --git a/doc/newsfragments/keystrokes-on-active-screen-only.feature b/doc/newsfragments/keystrokes-on-active-screen-only.feature new file mode 100644 index 00000000..4553029f --- /dev/null +++ b/doc/newsfragments/keystrokes-on-active-screen-only.feature @@ -0,0 +1,12 @@ +Added the ability to perform keystroke actions on a specific screen only, by adding the flag `activeScreenOnly` to the action (after the screens parameter) e.g. + +`keystroke(Control) = keystroke(Super,Mac-Mini,activeScreenOnly)` + +This works for both server and clients, with the exception being for keystroke actions intended for the server where the keystroke matches the condition (for instance, adding a custom action on a client, but preserving the original keystroke on the server) e.g. + +`keystroke(Control) = keystroke(Super,Mac-Mini,activeScreenOnly), keystroke(Alt,Server,activeScreenOnly)` // This works +`keystroke(Control) = keystroke(Super,Mac-Mini,activeScreenOnly), keystroke(Control,Server,activeScreenOnly)` // This does not work + +Since Barrier registers a hotkey for the keystroke condition on the server, this prevents the ability to specify the original keystroke as an action for the server. For this, a new option for the condition allows disabling hotkey registration. This allows the original keystroke to be performed on the primary when it is in focus i.e. + +`keystroke(Control,disableGlobalHotkeyRegister) = keystroke(Super,Rajveer-Mac-Mini,activeScreenOnly)` // This allows the original keystroke to perform on the server