Page 1 of 2

Home and End keys don't work correctly on multi-line fields

Posted: Tue Jun 18, 2019 1:10 am
by AoF
Here's a gif showing the issue:



Here I press end click back to the middle line, then press home. You can see the cursor jumps to the end of the above line in both cases.

When you press home, it should instead end up on the first character of the current line.

When you press end, it should instead end up on the last character of the current line.

I'd also like to request that if you're holding down shift while pressing these keys, it highlights in the correct way too, but I have a feeling the fix to the above issues will automatically fix this.

Thanks!

Re: Home and End keys don't work correctly on multi-line fields

Posted: Tue Jun 18, 2019 9:37 am
by Tony Li
Can you please remind me what Unity version you're using? There are some known issues in various Unity 2019 versions with multi-line text fields. (While I'm on the topic, avoid Unity 2019.3alpha; it has a bug that collapses all multi-line text fields to a single line high.)

Re: Home and End keys don't work correctly on multi-line fields

Posted: Wed Jun 19, 2019 12:33 am
by AoF
Sure, I'm using Version 2019.1.5f1 (0ca0f5646614) Personal

Re: Home and End keys don't work correctly on multi-line fields

Posted: Wed Jun 19, 2019 11:56 am
by Tony Li
I have had no luck reproducing this issue. Home, End, and Shift+Home etc. all work as expected. I'm testing with Unity 2019.1.5. I switched to the Personal skin, but it didn't make a difference.

Mac, Windows, or Linux?

Re: Home and End keys don't work correctly on multi-line fields

Posted: Wed Jun 19, 2019 11:22 pm
by AoF
weird. I'm using windows.

Re: Home and End keys don't work correctly on multi-line fields

Posted: Wed Jun 19, 2019 11:40 pm
by Tony Li
Does it happen in every field? Every Sequence field? Or only specific nodes' Sequence fields?

Re: Home and End keys don't work correctly on multi-line fields

Posted: Thu Jun 20, 2019 1:16 am
by AoF
It happened on every field I tried here except for the description:

I tried on other nodes and had the same issue.

Re: Home and End keys don't work correctly on multi-line fields

Posted: Thu Jun 20, 2019 9:08 am
by Tony Li
I know this isn't a showstopper but it must be annoying. If you or anyone else uncovers any other details that might help me reproduce the issue, please let me know.

In the meantime, I'll ask questions as they come to me. If the questions ever become more annoying than the original problem, let me know and I'll stop.

So, questions:

What version of Windows are you using?

Are you using any OS-level mouse or keyboard utilities, such as a hotkey mapper?

Does this happen with any other sections of the Dialogue Editor such as editing quests?

Or any other non-Dialogue System text fields?

In the Dialogue Editor's Database > Editor Settings, what is the value of the Auto Backup Frequency?

Re: Home and End keys don't work correctly on multi-line fields

Posted: Thu Jun 20, 2019 9:42 pm
by AoF
Tony Li wrote: Thu Jun 20, 2019 9:08 am
What version of Windows are you using?

Are you using any OS-level mouse or keyboard utilities, such as a hotkey mapper?
No, but I am using a Kinesis freestyle 2 keyboard. These keys don't act weird in any other program.
Does this happen with any other sections of the Dialogue Editor such as editing quests?
It happened on all the quest fields too.

[/quote]
Or any other non-Dialogue System text fields?
[/quote]

I'm wondering if it happens on any unity field or just this library, but I can't think of a way to create a multi-line text field in the inspector outside of the library.
In the Dialogue Editor's Database > Editor Settings, what is the value of the Auto Backup Frequency?
0

I don't mind answering any questions. I can also send my project to you if you want to see if it happens on your machine.

Re: Home and End keys don't work correctly on multi-line fields

Posted: Thu Jun 20, 2019 9:45 pm
by Tony Li
AoF wrote: Thu Jun 20, 2019 9:42 pmI'm wondering if it happens on any unity field or just this library, but I can't think of a way to create a multi-line text field in the inspector outside of the library.
Add a UI Text element to a Canvas. Its Text field is multi-line.