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

Announcements, support questions, and discussion for the Dialogue System.
AoF
Posts: 241
Joined: Sun May 12, 2019 8:36 pm

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

Post 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!
User avatar
Tony Li
Posts: 22055
Joined: Thu Jul 18, 2013 1:27 pm

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

Post 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.)
AoF
Posts: 241
Joined: Sun May 12, 2019 8:36 pm

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

Post by AoF »

Sure, I'm using Version 2019.1.5f1 (0ca0f5646614) Personal
User avatar
Tony Li
Posts: 22055
Joined: Thu Jul 18, 2013 1:27 pm

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

Post 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?
AoF
Posts: 241
Joined: Sun May 12, 2019 8:36 pm

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

Post by AoF »

weird. I'm using windows.
User avatar
Tony Li
Posts: 22055
Joined: Thu Jul 18, 2013 1:27 pm

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

Post by Tony Li »

Does it happen in every field? Every Sequence field? Or only specific nodes' Sequence fields?
AoF
Posts: 241
Joined: Sun May 12, 2019 8:36 pm

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

Post by AoF »

It happened on every field I tried here except for the description:

I tried on other nodes and had the same issue.
User avatar
Tony Li
Posts: 22055
Joined: Thu Jul 18, 2013 1:27 pm

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

Post 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?
AoF
Posts: 241
Joined: Sun May 12, 2019 8:36 pm

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

Post 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.
User avatar
Tony Li
Posts: 22055
Joined: Thu Jul 18, 2013 1:27 pm

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

Post 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.
Post Reply