MCPcopy Create free account
hub / github.com/SolarLune/masterplan / BeginEditing

Method BeginEditing

gui.go:2204–2214  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2202}
2203
2204func (label *Label) BeginEditing() {
2205 if globals.Keybindings.Pressed(KBAddToSelection) {
2206 label.MultiEditing = true
2207 }
2208 label.Editing = true
2209 caretPos := label.Selection.CaretPos
2210 label.Selection.SelectAll()
2211 label.Selection.CaretPos = caretPos
2212 globals.State = StateTextEditing
2213 globals.editingLabel = label
2214}
2215
2216func (label *Label) EndEditing() {
2217

Callers 12

UpdateMethod · 0.95
UpdateMethod · 0.80
UpdateMethod · 0.80
UpdateMethod · 0.80
UpdateMethod · 0.80
UpdateMethod · 0.80
NewSoundContentsFunction · 0.80
NewImageContentsFunction · 0.80
UpdateMethod · 0.80
UpdateMethod · 0.80
UpdateMethod · 0.80
UpdateMethod · 0.80

Calls 2

PressedMethod · 0.45
SelectAllMethod · 0.45

Tested by

no test coverage detected