From d93d3b1b6e8d6f0629c63fa1f5a7b0fc8bcd7ce5 Mon Sep 17 00:00:00 2001 From: mltony Date: Fri, 20 Dec 2024 19:23:06 -0800 Subject: [PATCH] cleanup --- addon/globalPlugins/browserNav/__init__.py | 1 - addon/globalPlugins/browserNav/quickJump.py | 6 ------ 2 files changed, 7 deletions(-) diff --git a/addon/globalPlugins/browserNav/__init__.py b/addon/globalPlugins/browserNav/__init__.py index 5ffc0e0..01923b5 100644 --- a/addon/globalPlugins/browserNav/__init__.py +++ b/addon/globalPlugins/browserNav/__init__.py @@ -509,7 +509,6 @@ def preCaretMovementScriptHelper(self, gesture,unit, direction=None,posConstant= if ( ( quickJump.isSkipClutterEnabledForThisUnit(unit) - or quickJump.needOverride_caretMovement(self) ) and direction is not None and posConstant==textInfos.POSITION_SELECTION diff --git a/addon/globalPlugins/browserNav/quickJump.py b/addon/globalPlugins/browserNav/quickJump.py index 4150743..527d37a 100644 --- a/addon/globalPlugins/browserNav/quickJump.py +++ b/addon/globalPlugins/browserNav/quickJump.py @@ -1696,12 +1696,6 @@ def _quickJump(self, gesture, bookmarks, direction, errorMsg): sonifyTextInfo(self.selection, oldTextInfo=oldSelection, includeCrackle=True) return -def needOverride_caretMovement(self): - url = getUrl(self) - suppressAriaLabelEditable = getSuppressAriaLabelEditable(url, globalConfig) - suppressTreeLevel = getSuppressTreeLevel(url, globalConfig) - return suppressAriaLabelEditable or suppressTreeLevel - def isSkipClutterEnabledForThisUnit(unit): return ( (