#1735 Some KeyPromptFlags result in suboptimal intial field focus


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.


  • Dominik Reichl

    Dominik Reichl - 2013-06-26
    • status: open --> closed
    • Group: KeePass --> KeePass_2.x
  • wellread1

    wellread1 - 2013-06-26

    Dominik, thank-you for implementing this usability tweak.


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks