-
-
Notifications
You must be signed in to change notification settings - Fork 641
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UI Automation in Windows Console: make speaking of passwords configurable #9649
Conversation
This approach works on my system, but needs wider testing.
…rators for UIA console options in the GUI.
For reference, may be you could elaborate on why passwords aren't spoken with the legacy implementation, and why this method does not work for UIA console? |
The legacy console support implements "speak typed characters" by looking at the proximity of new text to the caret. If characters appear close to the caret, they are presumed to be typed characters and read out as such. While this prevents typed passwords (or other off-screen characters) from being announced, it leads to #513. The UIA console captures typed characters using |
Before merging this, I'd like to know whether you do notice a lag in speak typed characters when speak passwords is off? |
Not really on my system, but it’s theoretically possible.
Bill
… On 2 Jun 2019, at 20:38, Michael Curran ***@***.***> wrote:
Before merging this, I'd like to know whether you do notice a lag in speak typed characters when speak passwords is off?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#9649?email_source=notifications&email_token=AAS4QS2RGL27YPP2RQWFD2TPYRR2BA5CNFSM4HRYFPRKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWYBPKY#issuecomment-498079659>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAS4QS7JM4QXRO7NP7H5D33PYRR2BANCNFSM4HRYFPRA>.
|
You'll need to merge master into this branch and fix conflicts before I can merge this. Conflicts probably due to the merging of pr #9651 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In gui/settingsDialogs.py:
You need to change both haveConfigDefaultsBeenRestored and restoreToDefaults methods on the advancedSettingsPanel class to handle your new setting.
Link to issue number:
Split from #9646 (builds on #9614).
Summary of the issue:
Currently, in consoles with UI Automation enabled:
Description of how this pull request fixes the issue:
When "speak passwords in UIA consoles" is disabled and one of "speak typed characters" or "speak typed words" is enabled,
typedCharacter
events are trapped and queued until atextChange
event is received. InwinConsoleUIA.event_textChange
, typed characters are removed from the queue andtypedCharacter
events are fired. InwinConsoleUIA.script_clear_isTyping
, this queue is flushed. Since password prompts do not update the screen while the user is typing, notextChange
events are received, so notypedCharacter
events are fired and therefore no characters are announced.Testing performed:
Tested password entry (by authenticating with
ssh
) on Windows 10 versions 1803 and 1903.Known issues with pull request:
typedCharacter
events are only dispatched oncetextChange
is received. This may introduce a small performance penalty.See #9646 for all UIA console known issues to date.
Change log entry:
None.