summaryrefslogtreecommitdiff
path: root/hyprtester/src/tests/main/keybinds.cpp
diff options
context:
space:
mode:
authorArchSav <96357545+ArchSav@users.noreply.github.com>2026-05-06 01:30:19 +1000
committerGitHub <noreply@github.com>2026-05-05 16:30:19 +0100
commit497b48e8520e4beac16a1a209551c3db46a6d917 (patch)
treed1314e40e8c816b229b189897a3852ee1f231226 /hyprtester/src/tests/main/keybinds.cpp
parenteff3bfe261e90b8950b59379ca7815f735a7aab6 (diff)
config: add device tags (#13728)
--------- Co-authored-by: Mio Argillander <mio@argillander.me>
Diffstat (limited to 'hyprtester/src/tests/main/keybinds.cpp')
-rw-r--r--hyprtester/src/tests/main/keybinds.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/hyprtester/src/tests/main/keybinds.cpp b/hyprtester/src/tests/main/keybinds.cpp
index 567d078b..589d5bb5 100644
--- a/hyprtester/src/tests/main/keybinds.cpp
+++ b/hyprtester/src/tests/main/keybinds.cpp
@@ -547,6 +547,14 @@ SUBTEST(perDeviceKeybind) {
EXPECT(attemptCheckFlag(20, 50), true);
OK(getFromSocket(pluginKeybindCmd(false, 0, 29)));
EXPECT(getFromSocket("/eval hl.unbind('SUPER + Y')"), "ok");
+
+ // Tags
+ EXPECT(checkFlag(), false);
+ EXPECT(getFromSocket("/eval hl.bind('SUPER + Y', hl.dsp.exec_cmd('touch " + flagFile + "'), { device = { inclusive = true, list = { 'test-tag' } } })"), "ok");
+ OK(getFromSocket(pluginKeybindCmd(true, 7, 29)));
+ EXPECT(attemptCheckFlag(20, 50), true);
+ OK(getFromSocket(pluginKeybindCmd(false, 0, 29)));
+ EXPECT(getFromSocket("/eval hl.unbind('SUPER + Y')"), "ok");
}
SUBTEST(unbind) {