Left/right arrow should move cursor in text-entry fields (Github #357)

Started by Silken Healer, August 28, 2024, 02:08:57 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Silken Healer

I am unable to use the left and right arrow in the level name field to go back. I wanted to edit a level name without deleting the entire name and retyping it.

Forestidia86


Silken Healer

Ah thanks. That GitHub issue is 6 years old so it's probably still a good idea that I bumped it.

namida

This seems like a very important feature. Even command-line terminals generally allow this.
My projects
2D Lemmings: NeoLemmix (engine) | Lemmings Plus Series (level packs) | Doomsday Lemmings (level pack)
3D Lemmings: Loap (engine) | L3DEdit (level / graphics editor) | L3DUtils (replay / etc utility) | Lemmings Plus 3D (level pack)
Non-Lemmings: Commander Keen: Galaxy Reimagined (a Commander Keen fangame)

Simon

Yeah, all of the following are long-missing features. Implementing all of these is considerable work. But it will be better to just start implementing some of them than having none at all.

Cursor-left to move leftward by one character.
Cursor-right to move rightward by one character.
Home to jump to the beginning.
End to jump to the end.
Ctrl+Left to move leftward to the next beginning of a word.
Ctrl+Right to move rightward to the next end of a word.

Click into the text to make the cursor jump there.

Add support for text selections in the first place.
Click and drag across text to mark the dragged-across section.
Hold shift and move the cursor to mark the moved-across section.

-- Simon

namida

The jumping to positions should be simple to do all of, once one of them is done. Highlighting etc is a bit trickier and more forgivable to not have.
My projects
2D Lemmings: NeoLemmix (engine) | Lemmings Plus Series (level packs) | Doomsday Lemmings (level pack)
3D Lemmings: Loap (engine) | L3DEdit (level / graphics editor) | L3DUtils (replay / etc utility) | Lemmings Plus 3D (level pack)
Non-Lemmings: Commander Keen: Galaxy Reimagined (a Commander Keen fangame)