Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: include numeric key code in KeyEvent Debug (#1089)
Add the numeric key code value after the enum literal name in debug prints of KeyEvent. Printing the numeric key code together with the pressed key enum value makes it much easier to create custom deflocalkeys. Example --debug output: ``` 21:42:09.5202 [DEBUG] (3) kanata_state_machine::kanata: process recv ev KeyEvent { code: KEY_LEFTCTRL (29), value: Press } 21:42:09.6403 [DEBUG] (3) kanata_state_machine::kanata: process recv ev KeyEvent { code: KEY_I (23), value: Press } ```
- Loading branch information