From 2fe046ba1495713734597c3256a6d9add050323e Mon Sep 17 00:00:00 2001 From: German Laullon Date: Sat, 18 Apr 2020 21:50:56 +0200 Subject: [PATCH] [zx] correct caps shift and symbol shift https://github.com/laullon/b2t80s/issues/6 --- machines/zx/ula_keyboard.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/machines/zx/ula_keyboard.go b/machines/zx/ula_keyboard.go index cad6ce0..c6d6acf 100644 --- a/machines/zx/ula_keyboard.go +++ b/machines/zx/ula_keyboard.go @@ -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: @@ -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 @@ -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