mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-19 22:33:16 +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:
|
case key == gocui.KeyCtrlY:
|
||||||
textArea.Yank()
|
textArea.Yank()
|
||||||
|
|
||||||
// TODO: see if we need all three of these conditions: maybe the final one is sufficient
|
case unicode.IsPrint(ch):
|
||||||
case ch != 0 && mod == 0 && unicode.IsPrint(ch):
|
|
||||||
textArea.TypeRune(ch)
|
textArea.TypeRune(ch)
|
||||||
default:
|
default:
|
||||||
return false
|
return false
|
||||||
|
Loading…
x
Reference in New Issue
Block a user