mirror of
https://github.com/ivanizag/izapple2.git
synced 2025-03-12 03:34:16 +00:00
Fix space converted to ampersand
This commit is contained in:
parent
fbecc320d2
commit
1cbb97d55f
@ -32,8 +32,8 @@ func (k *KeyboardChannel) PutText(text string) {
|
||||
}
|
||||
}
|
||||
|
||||
var macOptionChars = []rune("ı˝•£‰ ⁄‘’≈œæ€®†¥øπå∫∂ƒ™¶§∑©√ßµ„…≤≥çñŒÆ€‡∏fl¯ˇ˘‹›◊˙˚")
|
||||
var macOptionSubs = []rune("!\"·$%&/()=qwertyopasdfghjkxcvbm,.<>cnQWETPGJKLZXVNM")
|
||||
var macOptionChars = []rune("ı•£‰⁄‘’≈œæ€®†¥øπå∫∂ƒ™¶§∑©√ßµ„…≤≥çñŒÆ€‡∏fl¯ˇ˘‹›◊˙˚˝")
|
||||
var macOptionSubst = []rune("!·$%/()=qwertyopasdfghjkxcvbm,.<>cnQWETPGJKLZXVNM\"")
|
||||
|
||||
// PutRune sends a rune to the emulator if it is valid printable ASCII
|
||||
func (k *KeyboardChannel) PutRune(ch rune) {
|
||||
@ -41,7 +41,7 @@ func (k *KeyboardChannel) PutRune(ch rune) {
|
||||
// Some substitutions useful for Macs that transform chars with the option key
|
||||
pos := slices.Index(macOptionChars, ch)
|
||||
if pos >= 0 {
|
||||
ch = rune(macOptionSubs[pos])
|
||||
ch = rune(macOptionSubst[pos])
|
||||
}
|
||||
|
||||
// We will use computed text only for printable ASCII chars
|
||||
|
Loading…
x
Reference in New Issue
Block a user