Lemmings Forums

Lix => Lix Main => Topic started by: Silken Healer on August 28, 2024, 02:08:57 AM

Title: Left/right arrow should move cursor in text-entry fields (Github #357)
Post by: Silken Healer on August 28, 2024, 02:08:57 AM
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.
Title: Re: Unable to use the left and right arrow in the level name field to go back
Post by: Forestidia86 on August 28, 2024, 08:44:27 PM
I agree that this should be possible.
This is issue #357 (https://github.com/SimonN/LixD/issues/357) on github.
Title: Re: Unable to use the left and right arrow in the level name field to go back
Post by: Silken Healer on August 29, 2024, 03:01:51 AM
Ah thanks. That GitHub issue is 6 years old so it's probably still a good idea that I bumped it.
Title: Re: Unable to use the left and right arrow in the level name field to go back
Post by: namida on August 29, 2024, 05:29:55 AM
This seems like a very important feature. Even command-line terminals generally allow this.
Title: Re: Unable to use the left and right arrow in the level name field to go back
Post by: Simon on August 29, 2024, 02:50:06 PM
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
Title: Re: Unable to use the left and right arrow in the level name field to go back
Post by: namida on August 29, 2024, 10:35:10 PM
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.