Skip to content

Commit

Permalink
Fix bug in Outlook and Word
Browse files Browse the repository at this point in the history
  • Loading branch information
mltony committed Dec 2, 2024
1 parent 4a45c9f commit e76a8f2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
10 changes: 2 additions & 8 deletions addon/globalPlugins/browserNav/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1760,14 +1760,8 @@ def injectBrowseModeKeystrokes(self):
),
doc=_("Show BrowserNav popup menu."))

@script(description=_("Speak current URL for debug purpose."), gestures=['kb:NVDA+windows+z'])
@script(description=_("Speak current URL."), gestures=['kb:NVDA+control+L'])
def script_speakCurrentURL(self, gesture):
#url = getFocusedURL()
url = api.getCurrentURL()
#api.d = utils.getIA2Document()
#api.url = getFocusedURL()
#ui.message(url)
focus = api.getFocusObject()
textInfo = focus.treeInterceptor.makeTextInfo('caret')
x = utils.getGeckoParagraphIndent(textInfo)
ui.message(f"{x=}")
ui.message(url)
2 changes: 1 addition & 1 deletion addon/globalPlugins/browserNav/quickJump.py
Original file line number Diff line number Diff line change
Expand Up @@ -817,7 +817,7 @@ def getSuppressTreeLevel(url, config):
return mode

def getUrl(self=None, onlyFromCache=False):
return api.getCurrentURL()
return api.getCurrentURL() or ""

@functools.lru_cache()
def getBookmarksWithKeystrokesForUrl(url, config, keystroke, category=None):
Expand Down
2 changes: 1 addition & 1 deletion buildVars.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def _(arg):
In browsers it allows to quickly find vertically aligned paragraphs with the same offset from the left edge of the screen, such as first level comments in a hierarchical tree of comments.
It can also find paragraphs with the same font size or same font style."""),
# version
"addon_version" : "2.6.2",
"addon_version" : "2.6.3",
# Author(s)
"addon_author": "Tony Malykh <anton.malykh@gmail.com>",
# URL for the add-on documentation support
Expand Down

0 comments on commit e76a8f2

Please sign in to comment.