The KeyPromptFlags set many initial values of the "Enter Master Key" dialog but also influence selection of the field that receives the initial focus. A credible case can be made that only three fields should receive the initial focus; only two Flags should affect the choice; and the order of priority of the fields and flags should be:
Field candidates for initial focus:
1. Master Password (default keyboard input field) >
2. Key file (secondary keyboard input field) >
3. OK (always enabled button, default action)
Flags that should affect initial field focus:
1. Disable Password (256) >
2. Disable key file (1024)
An example in KeePass 2.22 of the where selection of other flags result in suboptimal selection of a field to receive the initial focus occurs when the "Uncheck 'hide password' option/button." (134217728) Flag is set. Even if the higher priority Master Password is enabled, and can accept keyboard input, the less desirable OK button receives the initial focus.
Log in to post a comment.