Commit Graph

67 Commits

Author SHA1 Message Date
xs5871
3c4e064201 Implement a heap based task scheduler 2023-04-01 00:12:49 +00:00
xs5871
3e13c8c321 Speed up unit tests 2023-03-16 21:51:16 +00:00
xs5871
ba06d3c8a5 Fix some old holdtap inconsistencies 2023-03-16 21:50:58 +00:00
xs5871
26bf630608 Fix layer tap interrupted 2023-03-16 21:50:42 +00:00
xs5871
47fe859e11 Speed up unit tests 2023-03-09 21:18:18 +00:00
xs5871
fd700cff44 Resolve invalid keys to KC.NO instead of ValueError 2023-03-09 21:18:02 +00:00
Phong Le
2ccad46e26
update modtap to holdtap (#718)
* update modtap to holdtap

* Update links

* Revert "Update links"

This reverts commit 8d0cda7c5a.

* updated docs links

update links in docs

* Update docs/en/Getting_Started.md

Co-authored-by: xs5871 <60395129+xs5871@users.noreply.github.com>

* Update docs/en/Getting_Started.md

Co-authored-by: xs5871 <60395129+xs5871@users.noreply.github.com>

* rename modtap.md to holdtap.md

* Update Getting_Started.md

* Update main.py

* Update modtap.py

* Update modtap.py and add notice

* Update docs/en/porting_to_kmk.md

Co-authored-by: xs5871 <60395129+xs5871@users.noreply.github.com>

* Update docs/en/handwiring.md

Co-authored-by: xs5871 <60395129+xs5871@users.noreply.github.com>

* Update docs/en/contributing.md

Co-authored-by: xs5871 <60395129+xs5871@users.noreply.github.com>

* Update docs/en/contributing.md

Co-authored-by: xs5871 <60395129+xs5871@users.noreply.github.com>

* Update docs/en/ble_hid.md

Co-authored-by: xs5871 <60395129+xs5871@users.noreply.github.com>

* Update docs/en/Getting_Started.md

Co-authored-by: xs5871 <60395129+xs5871@users.noreply.github.com>

* Update docs/en/Getting_Started.md

Co-authored-by: xs5871 <60395129+xs5871@users.noreply.github.com>

* Update docs/en/kmkpython_vs_circuitpython.md

Co-authored-by: xs5871 <60395129+xs5871@users.noreply.github.com>

* Rename modtap.md to holdtap.md

* fixup

---------

Co-authored-by: xs5871 <60395129+xs5871@users.noreply.github.com>
2023-03-03 09:32:41 +00:00
xs5871
e40fd90d5c Make oneshot stay active across layer changes 2023-02-28 19:04:11 +00:00
xs5871
301ce3c025 Improve unit test handling of pending/delayed keyboard actions 2023-02-28 19:04:11 +00:00
xs5871
6532497bb2 Implement oneshot key stacking 2023-02-28 19:04:11 +00:00
xs5871
deb941b196 Extract oneshot unit test from holdtap 2023-02-28 19:04:11 +00:00
Dave Bendit
99542b0493 fix: Linting 2022-11-21 21:12:40 +00:00
Dave Bendit
7115774633 test: Add test for capswords 2022-11-21 21:12:40 +00:00
xs5871
178afdfeb1 implement multiple-choice for holdtap repeat 2022-10-14 08:25:44 -07:00
xs5871
2af4bc9e67 add holdtap-repeat unittest 2022-10-11 15:43:39 -07:00
xs5871
17f2961c0b fix pystack exhaust during resume_process_key.
Instead of handling resumed key events in a deep stack, buffer them
until the next main loop iteration. New resume events that may be emitted
during handling of old resumes are prepended to that buffer, i.e. take
precedence over events that happen deeper into the buffer/event stack.
Logical replay order is thus preserved.
2022-10-08 13:36:00 -07:00
xs5871
565ec8353b continue/finish holdtap-repeat 2022-10-02 09:54:52 -07:00
James Fitzgerald
74563368c5 Fix key pressed before combo making combo wait for timeout 2022-07-24 21:15:20 +00:00
xs5871
682731bfe1 tests need more delay 2022-07-14 16:46:54 -07:00
James Fitzgerald
688c2f0572 Change debug_enabled to False 2022-07-14 10:29:25 +00:00
James Fitzgerald
c2a3a1895f Add more tests and delay after last key event in tests 2022-07-14 10:29:25 +00:00
James Fitzgerald
8ab67052cf Rename to String Substitution 2022-07-14 10:29:25 +00:00
James Fitzgerald
c49f409fb4 Add testing against suggested test cases 2022-07-14 10:29:25 +00:00
James Fitzgerald
664a557483 Apply suggestions from code review
Co-authored-by: xs5871 <60395129+xs5871@users.noreply.github.com>
2022-07-14 10:29:25 +00:00
James Fitzgerald
50279f88fb Add keyboard event tests 2022-07-14 10:29:25 +00:00
James Fitzgerald
e064796016 Fix isort issues and quotes 2022-07-14 10:29:25 +00:00
James Fitzgerald
f33e4d1870 Add unit tests 2022-07-14 10:29:25 +00:00
xs5871
20705e2150 unit test fail may be caused by a stuck combo 2022-07-12 19:20:22 -07:00
xs5871
ed378c960f github unit test keeps failing for no apparent reason... 2022-07-05 08:48:18 -07:00
xs5871
178acc0702 pacify the linter 2022-07-05 08:48:18 -07:00
xs5871
36703a1e0d fix holdtap unittest to match correct behaviour 2022-07-05 08:48:18 -07:00
xs5871
258e622bb4 fix and refactor keyboard unittest 2022-07-05 08:48:18 -07:00
xs5871
357165c14b fix KC["_"] resolving to BLE_REFRESH 2022-07-02 08:03:05 -07:00
xs5871
bb2ddc1e33 fix tapdance reporting key in wrong order 2022-06-30 00:37:04 -07:00
xs5871
e829bc83de fix tapdance crash and add unit-tests 2022-06-30 00:37:04 -07:00
xs5871
614961521d fix inconsistencies with chained holdtap keys 2022-06-11 12:42:49 -07:00
xs5871
35b1a5843f update combo unit tests 2022-06-05 16:32:25 -07:00
xs5871
08d3386643 fix KC.LM 2022-05-26 08:09:15 -07:00
John Morrison
c183bebb58 Conform class name case conventions 2022-05-08 20:10:41 +00:00
John Morrison
bea0f6d75b Requested rename 2022-05-08 20:10:41 +00:00
John Morrison
12e7a1b42c Class should be capital, use get rather than exception 2022-05-08 20:10:41 +00:00
John Morrison
73e95bfdde Change to be an extension 2022-05-08 20:10:41 +00:00
John Morrison
842537064f Black wants an additional blank line. 2022-05-08 20:10:41 +00:00
John Morrison
9f964aba36 Allow strings in keymap. Replace with keys in keyboard _init cycle. 2022-05-08 20:10:41 +00:00
Syed Hussaini
660b751c87 review updates and renamed to Sticky Mod 2022-05-02 21:02:40 +00:00
Syed Hussaini
1b902b907c updates based on review comments 2022-05-02 21:02:40 +00:00
Syed Hussaini
bce7959f66 modholdandtap implementation 2022-05-02 21:02:40 +00:00
xs5871
62ff7c838d fix combo buffer replay /w layer-switch 2022-04-25 13:26:02 -07:00
John Morrison
7d46e701aa Remove unused import 2022-04-25 17:50:26 +00:00
John Morrison
bb8dec907a Clear cache rather than reassign, correct ALPHA case check and creation 2022-04-25 17:50:26 +00:00