Skip to content

Commit

Permalink
[zx] correct caps shift and symbol shift
Browse files Browse the repository at this point in the history
  • Loading branch information
laullon committed Apr 18, 2020
1 parent 1ffec42 commit 2fe046b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions machines/zx/ula_keyboard.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
)

func (ula *ula) OnKeyEvent(key *fyne.KeyEvent) {
// fmt.Println("key:", key.Name)
//fmt.Println("key:", key.Name)
switch key.Name {

case fyne.Key1:
Expand Down Expand Up @@ -77,7 +77,7 @@ func (ula *ula) OnKeyEvent(key *fyne.KeyEvent) {
case fyne.KeyH:
ula.keyboardRow[6] ^= 0b00010000

case "LeftShift":
case "LeftShift", "RightShift":
ula.keyboardRow[0] ^= 0b00000001
case fyne.KeyZ:
ula.keyboardRow[0] ^= 0b00000010
Expand All @@ -90,7 +90,7 @@ func (ula *ula) OnKeyEvent(key *fyne.KeyEvent) {

case "Space":
ula.keyboardRow[7] ^= 0b00000001
case "RightSuper":
case "LeftControl", "RightControl":
ula.keyboardRow[7] ^= 0b00000010
case fyne.KeyM:
ula.keyboardRow[7] ^= 0b00000100
Expand Down

0 comments on commit 2fe046b

Please sign in to comment.