[nvda-addons] Re: reportPasswords add-on

  • From: Zahari Yurukov <zahari.yurukov@xxxxxxxxx>
  • To: nvda-addons@xxxxxxxxxxxxx
  • Date: Sat, 16 Apr 2016 13:04:16 +0300

Hi,
you can drop the unprotectPasswordControls() function and replace it
with lambda:
api.isTypingProtected = lambda:False

Though, if you want it to be configurable - you'll need it (which I
think will be best: with a keystroke to toggle, etc.).

Best wishes,
Zahari

На 16.04.2016 в 11:52, Noelia написа:

Hi:


On spanish mailing list has been discussed the difficulties of a pupil
typing his password for Gmail.

Some people would like to listeng the typed characters on protected
controls.

There is an issue for this at

https://github.com/nvaccess/nvda/issues/4624

I created a branch for this issue, though now I don't like my code,
since I modified speech instead of api.

The issue is opened, but there are people which requires this now.

I have created a very small add-on based on other one shared by James
Scholes, that report the spoken text, and indentones add-on, that is,
here I just act on api isTypingProtected function, intendent to
determine when keyboard echo needs to be suppressed.

I will be grateful if you can review this small piece of code, and let
me know if you want me to create the repo for the inclussion of the
add-on on the community website. Thanks:


^***


# reportPasswords: plugin to avoid keyboard echo suppressing on
protected controls
# Date: 16/04/2016

import globalPluginHandler
import api

def unprotectPasswordControls():
    return False

class GlobalPlugin(globalPluginHandler.GlobalPlugin):

    def __init__(self):
        super(globalPluginHandler.GlobalPlugin, self).__init__()
        api.isTypingProtected = unprotectPasswordControls

----------------------------------------------------------------
NVDA add-ons: A list to discuss add-on code enhancements and for
reporting bugs.
Community addons are available from: http://addons.nvda-project.org
To send a message to the list: nvda-addons@xxxxxxxxxxxxx
To change your list settings/unsubscribe:
//www.freelists.org/list/nvda-addons
To contact list moderators: nvda-addons-moderators@xxxxxxxxxxxxx

Attachment: signature.asc
Description: OpenPGP digital signature

Other related posts: