SHIFT key for TerminalAccessory #196
alexeyhatkevich
started this conversation in
Ideas
Replies: 2 comments 3 replies
|
Hello, I am not sure I understand, can you tell me more about what seems to be missing and where? |
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
What about adding SHIFT key support?
It will be great to insert and enhance this function:
func applyShiftToEventCharacters (_ ch: String) -> [UInt8]
{
let arr = UInt8
if arr.count == 1 {
let ch = Character(UnicodeScalar (arr [0]))
var value: UInt8
switch ch {
case "a"..."z":
value = (ch.asciiValue! - 0x20)
default:
value = (ch.asciiValue!)
}
return [value]
}
return []
}
All reactions