Skip to content

Commit

Permalink
Consolidate key modifier constants
Browse files Browse the repository at this point in the history
  • Loading branch information
sago35 committed Oct 17, 2023
1 parent fb1783b commit 7e23318
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
8 changes: 4 additions & 4 deletions keycodes/jp/keycodes.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ const (
)

const (
KeyMod1 = keycodes.ModKeyMask | 0x01
KeyMod2 = keycodes.ModKeyMask | 0x02
KeyMod3 = keycodes.ModKeyMask | 0x03
KeyMod4 = keycodes.ModKeyMask | 0x04
KeyMod1 = keycodes.KeyMod1
KeyMod2 = keycodes.KeyMod2
KeyMod3 = keycodes.KeyMod3
KeyMod4 = keycodes.KeyMod4
)
7 changes: 7 additions & 0 deletions keycodes/keycodes.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ const (
KeyBackspace = 0xF000 | 0x2A
)

const (
KeyMod1 = ModKeyMask | 0x01
KeyMod2 = ModKeyMask | 0x02
KeyMod3 = ModKeyMask | 0x03
KeyMod4 = ModKeyMask | 0x04
)

const (
// restore default keymap for QMK
KeyRestoreDefaultKeymap = 0x7C03
Expand Down

0 comments on commit 7e23318

Please sign in to comment.