diff options
| author | ArchSav <96357545+ArchSav@users.noreply.github.com> | 2026-05-06 01:30:19 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-05-05 16:30:19 +0100 |
| commit | 497b48e8520e4beac16a1a209551c3db46a6d917 (patch) | |
| tree | d1314e40e8c816b229b189897a3852ee1f231226 /hyprtester/src/tests/main/keybinds.cpp | |
| parent | eff3bfe261e90b8950b59379ca7815f735a7aab6 (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.cpp | 8 |
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) { |
