[nvda-addons] commit/eMule: norrumar: Fixed documentation about commands to find text and reviewed script_find

  • From: commits-noreply@xxxxxxxxxxxxx
  • To: nvda-addons@xxxxxxxxxxxxx
  • Date: Fri, 17 May 2013 14:18:51 -0000

1 new commit in eMule:

https://bitbucket.org/nvdaaddonteam/emule/commits/5eb2bc0d4ec9/
Changeset:   5eb2bc0d4ec9
Branch:      master
User:        norrumar
Date:        2013-05-17 16:17:42
Summary:     Fixed documentation about commands to find text and reviewed 
script_find

Affected #:  2 files

diff --git a/addon/appModules/emule.py b/addon/appModules/emule.py
index 909c45e..48ce8cd 100644
--- a/addon/appModules/emule.py
+++ b/addon/appModules/emule.py
@@ -2,6 +2,8 @@
 
 # eMuleNVDASupport: An app module for eMule
 # Version: 1.1-dev
+# Fixed bug in script_find: Now works just on readonly edit controls
+# Date: 17/05/2013
 # Added comments for translators
 # Date: 13/05/2012
 # Added support for managing columns
@@ -347,6 +349,11 @@ class AppModule(appModuleHandler.AppModule):
                gui.runScriptModalDialog(d, callback)
 
        def script_find(self,gesture):
+               obj = api.getFocusObject()
+               if obj is None:
+                       return
+               if not (obj.role == controlTypes.ROLE_EDITABLETEXT and 
controlTypes.STATE_READONLY in obj.states):
+                       return
                self.doFindTextDialog()
        # Translators: message presented in input mode, when a keystroke of an 
addon script is pressed.
        script_find.__doc__ = _("find a text string from the current cursor 
position.")

diff --git a/addon/doc/en/readme.html b/addon/doc/en/readme.html
index efe780b..c1b3d47 100644
--- a/addon/doc/en/readme.html
+++ b/addon/doc/en/readme.html
@@ -24,9 +24,9 @@
 <dt><kbd>control+shift+b</kbd></dt><dd> Move the focus to the list of results 
in the Search window.</dd><dt><kbd>control+shift+z</kbd></dt><dd> Moves  focus 
and mouse to contextual  toolbar. You can moves within this tool by  Tab 
key.</dd><dt><kbd>control+shift+o</kbd></dt><dd> Moves the focus to the 
messages received on IRC window.</dd>
-<dt><kbd>control+NVDA+f</kbd></dt><dd>If the caret is located in an edit box 
(read only), opens a dialog in which you can type some text to find. Otherwise, 
In other areas of the application the command is processed by eMule.</dd>
-<dt><kbd>control+f3</kbd></dt><dd>Finds the next occurrence of the text  that 
you previously searched in edit boxes (read-only). In other areas of the 
application, the command will be processed by eMule.</dd>
-<dt><kbd>control+shift+f3</kbd>´</dt><dd>Finds the previous occurrence of the 
text  that you previously searched in edit boxes (read-only). In other areas of 
the application, the command will be processed by eMule.</dd>
+<dt><kbd>control+NVDA+f</kbd></dt><dd>If the caret is located in an edit box 
(read only), opens a dialog in which you can type some text to find.</dd>
+<dt><kbd>control+f3</kbd></dt><dd>Finds the next occurrence of the text  that 
you previously searched in edit boxes (read-only).</dd>
+<dt><kbd>control+shift+f3</kbd></dt><dd>Finds the previous occurrence of the 
text  that you previously searched in edit boxes 
(read-only).</dd><dt><kbd>control+shift+l</kbd></dt><dd> Moves the navigator 
object and mouse to the headers of the current 
list.</dd><dt><kbd>control+shift+q</kbd></dt><dd> Reads the first object in the 
status bar;  provides information about recent 
activity.</dd><dt><kbd>control+shift+w</kbd></dt><dd> Reads the second object 
of the status bar;  contains information about files and users on the current 
server.</dd>

Repository URL: https://bitbucket.org/nvdaaddonteam/emule/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
----------------------------------------------------------------

NVDA add-ons Central: A list for discussing NVDA add-ons

To post a message, send an email to nvda-addons@xxxxxxxxxxxxx.

To unsubscribe, send an email with the subject line of "unsubscribe" (without 
quotes) to nvda-addons-request@xxxxxxxxxxxxx.

If you have questions for list moderators, please send a message to 
nvda-addons-moderators@xxxxxxxxxxxxx.

Other related posts:

  • » [nvda-addons] commit/eMule: norrumar: Fixed documentation about commands to find text and reviewed script_find - commits-noreply