Focus on the first input after closing modal window

asked 2015-06-02 13:24:17 +0800

eclipse1 gravatar image eclipse1
21 4


I have the following scenario where I have two windows, from the first window open a second window where I have defined an action of closing, after closing the second window is intended that the focus will remain in the same position in the first window, but the focus is placed in the first input available.

ZK Fiddle Example : zkfiddle.org/sample/3e2ptit/1-Focus-is-setted-in-first-input

It seems to be the default behavior of the framework.

Is there any workaround?


delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted

answered 2015-06-03 09:47:55 +0800

Darksu gravatar image Darksu
1991 1 4

Hello eclipse1,

You could do the following:

  1. Invoke in the closing of the window a global command
  2. In that global command set the focus of the desired component




Best Regards,


link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

1 follower



Asked: 2015-06-02 13:24:17 +0800

Seen: 13 times

Last updated: Jun 03 '15

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More