1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-01 00:54:58 +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

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