From 1922a47cb502d2850c2c05c3d62907eb27130e11 Mon Sep 17 00:00:00 2001 From: chrys Date: Tue, 12 Feb 2019 23:18:16 +0100 Subject: [PATCH] search case insensitive --- src/fenrirscreenreader/core/vmenuManager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fenrirscreenreader/core/vmenuManager.py b/src/fenrirscreenreader/core/vmenuManager.py index 3e96d719..aef56ca8 100755 --- a/src/fenrirscreenreader/core/vmenuManager.py +++ b/src/fenrirscreenreader/core/vmenuManager.py @@ -48,14 +48,14 @@ class vmenuManager(): if self.useTimeout: if time.time() - self.lastSearchTime > 1: self.clearSearchText() - self.searchText += value + self.searchText += value.upper() self.lastSearchTime = time.time() startIndex = self.getCurrIndex() while True: if not self.nextIndex(): return '' entry = self.getCurrentEntry() - if entry.startswith(self.searchText): + if entry.upper().startswith(self.searchText): return entry if startIndex == self.getCurrIndex(): return ''