From 177167510b2e3378a195a361ce340c96a02ea4b4 Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Fri, 6 Sep 2024 00:16:27 -0400 Subject: [PATCH] Shift+Ctrl+Z now works for redo --- textinput.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/textinput.go b/textinput.go index 76aac53..608825e 100644 --- a/textinput.go +++ b/textinput.go @@ -159,6 +159,7 @@ func (this *TextInput) Redo () { // Type types a character at the current dot position. func (this *TextInput) Type (char rune) { dot := this.Dot() + this.historySwapDot() this.text, dot = text.Type(this.text, dot, rune(char)) this.Select(dot) this.box.SetText(string(this.text)) @@ -247,7 +248,7 @@ func (this *TextInput) handleKeyDown (key input.Key, numpad bool) bool { case key.Printable() && !modifiers.Control: typeRune() return true - case key == 'z' && modifiers.Control: + case key == 'z' || key == 'Z' && modifiers.Control: if modifiers.Shift { this.Redo() } else {