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:
commit
57bb1aa698
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user