1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2024-12-04 10:34:55 +02:00

Support typing special characters like '[' on non-english keyboards (#2818)

This commit is contained in:
Jesse Duffield 2023-07-24 10:47:15 +10:00 committed by GitHub
commit 57bb1aa698
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,8 +47,7 @@ func (gui *Gui) handleEditorKeypress(textArea *gocui.TextArea, key gocui.Key, ch
case key == gocui.KeyCtrlY:
textArea.Yank()
// TODO: see if we need all three of these conditions: maybe the final one is sufficient
case ch != 0 && mod == 0 && unicode.IsPrint(ch):
case unicode.IsPrint(ch):
textArea.TypeRune(ch)
default:
return false