Page MenuHome

Text selection and editing within text field buttons
Closed, ArchivedPublicPATCH

Description

Ported from tuhopuu:

Number and text fields now have a concept of selection, which was always missing before. Clicking to enter the number/text field automatically selects all by default.

Here is the current functionality:

Mouse click: If inside the button, places the text cursor at the clicked position. If outside the button, confirms/finishes editing
Mouse drag: Selects the text between the start and end point of the drag.

Backspace: Deletes selected text, or backspaces a character
Shift Backspace: Deletes all, as before.
Delete: Deletes selected text or forward deletes a character
Shift LeftArrow: Extends the selection left
Shift RightArrow: Extends the selection right

LeftArrow: If there's a selection, move the cursor to the left edge of the selection, otherwise move the cursor left a character.
RightArrow: If there's a selection, move the cursor to the right edge of the selection, otherwise move the cursor right a character.
UpArrow/Home: Move the cursor to the beginning of the line
DownArrow/End: Move the cursor to the end of the line

Any ascii character: Delete the current selection and insert the character

Event Timeline

Ton Roosendaal (ton) changed the task status from Unknown Status to Unknown Status.Nov 20 2005, 10:57 AM