search case insensitive
This commit is contained in:
parent
6fd2f60d66
commit
1922a47cb5
@ -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 ''
|
||||
|
Loading…
Reference in New Issue
Block a user