1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-13 00:57:33 -05:00

winpgnt: say 'click to focus' in async passphrase prompt.

I continue to believe that there's nothing I can (or should) do about
the fact that on Windows, Pageant's async passphrase prompt dialog box
doesn't automatically get the input focus when it pops up in response
to a request received via invisible IPC.

However, one thing I can do is add some text to the box that _warns_
people about it, so that at least there's some kind of suggestion that
you should get into the habit of clicking on the passphrase prompt
before typing your passphrase into it.

(I would be less concerned about all of this if it weren't for the
fact that focus is surprisingly non-obvious on Windows 10, at least on
the machine I have here. When the window doesn't have focus, the title
bar has the same background colour, and only the text is fainter. And
perhaps more confusingly, the cursor in the edit box still flashes!
That fooled _me_ a few times to begin with.)
This commit is contained in:
Simon Tatham
2021-04-22 19:47:13 +01:00
parent 15ca55c5c3
commit 16a59b5972
2 changed files with 9 additions and 6 deletions

View File

@ -14,7 +14,8 @@
#define IDC_PASSPHRASE_STATIC1 100
#define IDC_PASSPHRASE_FINGERPRINT 101
#define IDC_PASSPHRASE_STATIC2 102
#define IDC_PASSPHRASE_EDITBOX 103
#define IDC_PASSPHRASE_STATIC3 103
#define IDC_PASSPHRASE_EDITBOX 104
#define IDC_KEYLIST_LISTBOX 100
#define IDC_KEYLIST_ADDKEY 101