Compare commits

..

No commits in common. "177167510b2e3378a195a361ce340c96a02ea4b4" and "8b1b2e4199759ec5efe23032b325c236b120c13f" have entirely different histories.

View File

@ -159,7 +159,6 @@ 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))
@ -215,7 +214,6 @@ func (this *TextInput) handleKeyDown (key input.Key, numpad bool) bool {
this.box.SetText(string(txt))
this.box.Select(dot)
this.on.valueChange.Broadcast()
this.on.dotChange.Broadcast()
this.logKeystroke()
}
} ()
@ -248,7 +246,7 @@ func (this *TextInput) handleKeyDown (key input.Key, numpad bool) bool {
case key.Printable() && !modifiers.Control:
typeRune()
return true
case key == 'z' || key == 'Z' && modifiers.Control:
case key == 'z' && modifiers.Control:
if modifiers.Shift {
this.Redo()
} else {
@ -298,6 +296,7 @@ func (this *TextInput) handleScroll (x, y float64) bool {
}
func (this *TextInput) handleDotChange () {
println("asdjhk")
this.historySwapDot()
this.on.dotChange.Broadcast()
}