primitivus: fixed forgotten keys
This commit is contained in:
parent
30ff971087
commit
5b2e887317
1 changed files with 6 additions and 6 deletions
|
|
@ -252,17 +252,17 @@ class PrimitivusApp(QuickApp, InputHistory):
|
|||
self.showPopUp(popup)
|
||||
super(PrimitivusApp, self).postInit()
|
||||
|
||||
def inputFilter(self, input, raw):
|
||||
if self.__saved_overlay and input != ['ctrl s']:
|
||||
def inputFilter(self, input_, raw):
|
||||
if self.__saved_overlay and input_ != a_key['OVERLAY_HIDE']:
|
||||
return
|
||||
for i in input:
|
||||
for i in input_:
|
||||
if isinstance(i,tuple):
|
||||
if i[0] == 'mouse press':
|
||||
if i[1] == 4: #Mouse wheel up
|
||||
input[input.index(i)] = 'up'
|
||||
input_[input_.index(i)] = a_key['HISTORY_PREV']
|
||||
if i[1] == 5: #Mouse wheel down
|
||||
input[input.index(i)] = 'down'
|
||||
return input
|
||||
input_[input_.index(i)] = a_key['HISTORY_NEXT']
|
||||
return input_
|
||||
|
||||
def keyHandler(self, input_):
|
||||
if input_ == a_key['MENU_HIDE']:
|
||||
|
|
|
|||
Loading…
Reference in a new issue