Skip to content

Commit

Permalink
QoL: Clicking after editing text consumes the click. This makes it so…
Browse files Browse the repository at this point in the history
… that you don't deselect the card you're editing, for example.
  • Loading branch information
SolarLune committed Sep 14, 2023
1 parent 6df2b93 commit c9eb523
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gui.go
Original file line number Diff line number Diff line change
Expand Up @@ -1903,6 +1903,7 @@ func (label *Label) EndEditing() {
label.MultiEditing = false
if globals.State == StateTextEditing {
globals.State = StateNeutral
globals.Mouse.Button(sdl.BUTTON_LEFT).Consume()
globals.editingCard = nil
}
caretPos := label.Selection.CaretPos
Expand Down

0 comments on commit c9eb523

Please sign in to comment.