Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 7 of 7 total
Thread Focus and cursor problem for input controls in firefox
Mon, Jun 12 2017 2:22 AMPermanent Link

Michael Dreher

When using input controls in firefox, the cursor becomes invisible. No probleme with IE or chrome.
I have attached two simple projects with components TEdit, TMultiLineEdit (different layouts).

Effect: on startup the TEdit has focus (the default text is selected). If I...
 a) press TAB, input switches to the TMultiLiteEdit, I see the cursor, but the TEdit.Text remains "visible selected".
 b) left click alternating TMultiLiteEdit and TEdit instead, the cursor becomes invisible.

Is this repeatable?

WebBuilder version: 2.06B2
Firefox version: 53.0.3

Michael Dreher



Attachments: Samples.zip
Mon, Jun 12 2017 4:48 AMPermanent Link

Chris Holland

SEC Solutions Ltd.

Avatar

Team Elevate Team Elevate

Yep, happens here as well.

Chris Holland
[Team Elevate]

On 12/06/2017 07:22, Michael Dreher wrote:
> When using input controls in firefox, the cursor becomes invisible. No probleme with IE or chrome.
> I have attached two simple projects with components TEdit, TMultiLineEdit (different layouts).
>
> Effect: on startup the TEdit has focus (the default text is selected). If I...
>    a) press TAB, input switches to the TMultiLiteEdit, I see the cursor, but the TEdit.Text remains "visible selected".
>    b) left click alternating TMultiLiteEdit and TEdit instead, the cursor becomes invisible.
>
> Is this repeatable?
>
> WebBuilder version: 2.06B2
> Firefox version: 53.0.3
>
> Michael Dreher
>
Wed, Jun 14 2017 1:37 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Michael,

<< When using input controls in firefox, the cursor becomes invisible. No probleme with IE or chrome.
I have attached two simple projects with components TEdit, TMultiLineEdit (different layouts). >>

Okay, I'll check it out.

Tim Young
Elevate Software
www.elevatesoft.com
Fri, Jun 16 2017 2:34 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Michael,

Yeah, something is really screwed up in Firefox.  Even if I disable the selection on enter (focus), and the clearing of the selection on exit (blur), the caret *still* disappears when using the mouse to put the caret in the multi-line edit (text area element).

However, a JSFiddle shows that the selection handling works fine with just basic elements and onfocus/onblur event handling:

https://jsfiddle.net/zxhba6o2/1/

So I'm not sure what is triggering it, but it's a real mess.

Firefox has had issues with disappearing edit cursors various times over the years, so this is probably a similar issue.  I can't find a bug report on this yet, so I'll have to file one after I figure out what's going on.

Tim Young
Elevate Software
www.elevatesoft.com
Mon, Jun 19 2017 2:15 AMPermanent Link

Michael Dreher

Tim Young [Elevate Software] wrote:

  // ... I'll have to file one after I figure out what's going on.

Thanks.

I want to add, that we can observe this effect since the Web Builder projects were compiled with 2.06B2.
In the attachment a compiled example project with 2.06B1. Same components, same firefox, but no focus or cursor problem.

M. Dreher



Attachments: test.206B1.zip
Mon, Jun 19 2017 1:47 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Michael,

<< I want to add, that we can observe this effect since the Web Builder projects were compiled with 2.06B2.
In the attachment a compiled example project with 2.06B1. Same components, same firefox, but no focus or cursor problem. >>

Hmm, interesting.  I'll do a source code diff and see could have caused the issue.

Thanks,

Tim Young
Elevate Software
www.elevatesoft.com
Tue, Jun 20 2017 12:51 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Michael,

Okay, you were 100% correct, and the issue was this fix:

https://www.elevatesoft.com/incident?action=viewaddr&category=ewb&release=2.06&incident=4505

I forgot that we were using the capture (not bubbling) phase for event handling in the event manager, and stopping the propagation of focus events during the capture phase causes this issue with Firefox:

https://bugzilla.mozilla.org/show_bug.cgi?id=509684

So, it was two bugs, working together to make our lives more difficult... Wink

A fix will be in 2.06 B3.

Thanks,

Tim Young
Elevate Software
www.elevatesoft.com
Image