diff options
author | Pascal Getreuer <50221757+getreuer@users.noreply.github.com> | 2022-08-13 06:48:51 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-13 23:48:51 +1000 |
commit | 6a0d90f81a9b9938591b32f9321530e68e5cea0b (patch) | |
tree | 138714ab3bc8e6f7c373a73f67424e6c3d7711a0 /tests/test_common/test_fixture.hpp | |
parent | 4eeafbebabfac04eada98f75dedbecdbbd16298c (diff) |
Fix Caps Word capitalization when used with Combos + Auto Shift. (#17549)
Diffstat (limited to 'tests/test_common/test_fixture.hpp')
-rw-r--r-- | tests/test_common/test_fixture.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_common/test_fixture.hpp b/tests/test_common/test_fixture.hpp index 81906f76c7..2590acd006 100644 --- a/tests/test_common/test_fixture.hpp +++ b/tests/test_common/test_fixture.hpp @@ -53,6 +53,13 @@ class TestFixture : public testing::Test { } } + /** + * @brief Taps a combo with `delay_ms` delay between press and release. + * + * Example: `tap_combo({key_a, key_b})` to tap the chord A + B. + */ + void tap_combo(const std::vector<KeymapKey>& chord_keys, unsigned delay_ms = 1); + void run_one_scan_loop(); void idle_for(unsigned ms); |