You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: Left and Right arrow keys don't move the query cursor #25
When typing a calculation in the launcher, the Left and Right arrow keys don't move the cursor through the expression. This makes it awkward to correct a character in the middle without deleting everything after it.
Steps to reproduce
Open oma-cast.
Type 12+34.
Press Left twice to move back before the 3.
Try typing 5 at that position.
Try moving the cursor with Right as well.
Expected behaviour
Left and Right move the cursor one character at a time. Typing inserts text at the cursor position. In the example above, inserting 5 before 3 should give 12+534.
Actual behaviour
The cursor stays at the end of the expression. Left and Right don't reposition it, and further typing is appended at the end.
The symptoms appear to come from the launcher's shared query input, rather than the calculator evaluator:
handleKey has no Left/Right cursor handling and appends printable characters with window.setQuery(window.query + event.text).
The visible query is a Text element, and the caret is positioned at the end of its content. There is no query cursor position to update.
This is based on the observed desktop behaviour and source inspection; no automated input test was run for this report.
Related work
#23 adds input-method support, but its current diff still appends committed text to the query and keeps the displayed caret at the end. It appears related, but doesn't address Left/Right editing. I couldn't find an existing open issue or PR covering this behaviour.
changed the title [-]Left and Right arrow keys don't move the query cursor[/-][+]Bug: Left and Right arrow keys don't move the query cursor[/+]on Oct 30, 2026
Activity
Preserves query editing with upstream launcher changes (typecraft-dev#25
Enables query cursor editing (typecraft-dev#25)
Preserves query editing with upstream search updates (typecraft-dev#25)
[-]Left and Right arrow keys don't move the query cursor[/-][+]Bug: Left and Right arrow keys don't move the query cursor[/+]fix(search): keeps cursor editing in the new layout (typecraft-dev#25)
fix(search): preserves cursor editing with current launcher (typecraf…
fix(search): preserves dropdown arguments with cursor editing (typecr…
fix(search): keeps cursor documentation with upstream README (typecra…