1
0
mirror of https://github.com/makew0rld/amfora.git synced 2024-12-04 14:46:29 -05:00

Support for Shift mod keybinds (#269)

This commit is contained in:
mooff 2021-12-08 02:26:42 +00:00 committed by GitHub
parent 969f4f91d9
commit 762e2d606a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -130,6 +130,11 @@ func parseBinding(cmd Command, binding string) {
binding = binding[4:]
}
if strings.HasPrefix(binding, "Shift-") {
m += tcell.ModShift
binding = binding[6:]
}
if len([]rune(binding)) == 1 {
k = tcell.KeyRune
r = []rune(binding)[0]