Neutronium icon indicating copy to clipboard operation
Neutronium copied to clipboard

Focus on startup

Open delasource opened this issue 5 years ago • 1 comments

I want to set the keyboard focus to a <input ref="email-input" ...> element on my first page that opens, so that a user can start inputing his credentials right away. How do i achive this?

It seems like the Chromium window has no focus and so vue style: this.$refs['email-input'].focus(); (in a watcher) does not work. Even not in a $nextTick funciton block.

delasource avatar Oct 02 '19 11:10 delasource

Try to set focus progamatically in the C# side for the open window and the Neutronium usercontrol.

David-Desmaisons avatar Oct 16 '19 12:10 David-Desmaisons