Commit d2affba
committed
fix(yutori): map standalone modifier names through MODIFIER_MAP
key_press / hold_key compound keys already consulted MODIFIER_MAP, but
the new `modifier` parameter on click and scroll actions passes a bare
modifier name ("control", "meta", "command") that bypassed the lookup
and went out as-is. Kernel's hold_keys wants "ctrl" and "super" — so
ctrl-click and cmd-click silently dropped the modifier.
Unify the per-part mapping into a single helper applied to both the
compound and single-key paths in TS and Python.1 parent 23b63f0 commit d2affba
2 files changed
Lines changed: 20 additions & 28 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
374 | 374 | | |
375 | 375 | | |
376 | 376 | | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
377 | 384 | | |
378 | | - | |
379 | | - | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | | - | |
384 | | - | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
| 385 | + | |
| 386 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
414 | 414 | | |
415 | 415 | | |
416 | 416 | | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
417 | 426 | | |
418 | | - | |
419 | | - | |
420 | | - | |
421 | | - | |
422 | | - | |
423 | | - | |
424 | | - | |
425 | | - | |
426 | | - | |
427 | | - | |
428 | | - | |
429 | | - | |
| 427 | + | |
430 | 428 | | |
431 | | - | |
432 | | - | |
| 429 | + | |
433 | 430 | | |
434 | 431 | | |
435 | 432 | | |
| |||
0 commit comments