diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2023-07-24 10:47:15 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-24 10:47:15 +1000 |
commit | 57bb1aa69853de458faf886f077dfca9250dc28d (patch) | |
tree | 30128d3f896256c8261f1c36563f7fc3fcc3803b | |
parent | 02270e9ccdb407456f053771c8d4e43be6a84d13 (diff) | |
parent | 4f807eeb194872b48285c47ca1a58a5ebcc7e375 (diff) |
Support typing special characters like '[' on non-english keyboards (#2818)
-rw-r--r-- | pkg/gui/editors.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pkg/gui/editors.go b/pkg/gui/editors.go index b095630ec..fdbe67a39 100644 --- a/pkg/gui/editors.go +++ b/pkg/gui/editors.go @@ -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 |