Welcome, Guest

Author Topic: INPUT text shows focus but needs click to type  (Read 1147 times)

keithmarsh

  • Posts: 1
    • View Profile
INPUT text shows focus but needs click to type
« on: October 23, 2014, 12:10:36 PM »
Hi

I have a plain HTML form on a HUD, which I want to take immediate focus on my level loading.   I think I've followed all the steps from your example, but I must be missing one vital piece.  I've tried this on 2.3 and 2.4 on UE4.4 with the same results.  I'm doing everything in C++ without any blueprints.

On my pawn PostInitializeComponents I'm creating an input forward widget.
On pawn begin play I spawn a CoherentUIInputActor and Initialize it.
My level contains a CoherentSystem actor.
My HUD's constructor create a  uCoherentUIHUD
My HUD is using shared memory, transparent, clickthru, not on demand, software rendering.
I register for FinishLoad, and in the callback, I
  • SetKeyboardFocus to the InputForwardWidget
  • Find the first coherent input actor and setCoherentUIInputFocus to true
  • On the View, I trigger an event in the JS that sets focus to the text INPUT I want
  • On the view, I SetFocus()

Everything looks right with the cursor flashing in the first text input of the form, but typing does nothing.  Clicking on the text input then shows types characters.

Happy to supply source if it'll help.

Thanks

Keith Marsh

Cyber

  • Posts: 2
    • View Profile
Re: INPUT text shows focus but needs click to type
« Reply #1 on: May 24, 2018, 01:14:42 PM »
Did you ever figure out how to solve this?
I know this is necroing a thread but I'm facing the exact same problem.

Any thoughts?

Tags: