1 new commit in readFeeds:
https://bitbucket.org/nvdaaddonteam/readfeeds/commits/2a90dad5da95/
Changeset: 2a90dad5da95
Branch: enhancedgui
User: norrumar
Date: 2016-12-05 10:00:14+00:00
Summary: Used regexpr for edit box to filter listed elements, based on
Input gestures dialog of NVDA core, needed here too.
Affected #: 1 file
diff --git a/addon/globalPlugins/readFeeds.py b/addon/globalPlugins/readFeeds.py
index 0d8880a..7746d5c 100644
--- a/addon/globalPlugins/readFeeds.py
+++ b/addon/globalPlugins/readFeeds.py
@@ -27,6 +27,7 @@ from gui import guiHelper
import wx
import ui
from logHandler import log
+import re
sys.path.append(os.path.dirname(__file__))
from xml2.dom import minidom
@@ -149,10 +150,16 @@ class FeedsDialog(wx.Dialog):
def onSearchEditTextChange(self, evt):
self.feedsList.Clear()
+ # Based on the filter of the Input gestures dialog of NVDA's
core.
+ filter = self.searchTextEdit.Value
+ filter = re.escape(filter)
+ filterReg = re.compile(r'(?=.*?' +
r')(?=.*?'.join(filter.split('\ ')) + r')', re.U|re.IGNORECASE)
for choice in self.choices:
- if self.searchTextEdit.Value.lower() not in
choice.lower():
+ if filter and not filterReg.match(choice):
continue
self.feedsList.Append(choice)
+ self.feedsList.Selection = 0
+ self.onFeedsListChoice(None)
def onFeedsListChoice(self, evt):
self.sel = self.feedsList.Selection
Repository URL: https://bitbucket.org/nvdaaddonteam/readfeeds/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.