Clicking the formula bar and double-clicking the active cell run the edit command, as F2 and Enter do, rather than calling startEdit.
- commit
- a248713f24d98b026276927d4c2c71f03e6b32dc
- parent
- fdd61322ea6db898dd7871f51e5e84d7c5dadc41
- author
- Dami <dami.etoile@gmail.com>
| M | internal/ | 4 | ++-- |
@@ -204,7 +204,7 @@ func (m *Model) readyPress(h hit, mouse tea.Mouse, double bool) tea.Cmd {
204204 shift := mouse.Mod.Contains(tea.ModShift)205205 switch h.kind {206206 case hitFormulaBar:207- m.startEdit()207+ m.runCommand("edit")208208 m.line.setCaret(h.x)209209 case hitCorner:210210 m.cur = sheet.Addr{Col: m.left, Row: m.top}@@ -225,7 +225,7 @@ func (m *Model) readyPress(h hit, mouse tea.Mouse, double bool) tea.Cmd {
225225 m.selecting, m.whole, m.ext = true, wholeNone, h.addr226226 case double && h.addr == m.cur:227227 m.clearSelection()228- return m.startEdit()228+ return m.runCommand("edit")229229 default:230230 m.cur = h.addr231231 m.clearSelection()