Mercurial > libervia-backend
comparison frontends/src/primitivus/primitivus @ 1164:af395a6f2551
primitivus: fixed forgotten keys
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 04 Sep 2014 20:24:41 +0200 |
parents | 60ebe98c9d04 |
children | ca15fb1abbc4 |
comparison
equal
deleted
inserted
replaced
1163:60ebe98c9d04 | 1164:af395a6f2551 |
---|---|
250 self._early_popup = popup | 250 self._early_popup = popup |
251 else: | 251 else: |
252 self.showPopUp(popup) | 252 self.showPopUp(popup) |
253 super(PrimitivusApp, self).postInit() | 253 super(PrimitivusApp, self).postInit() |
254 | 254 |
255 def inputFilter(self, input, raw): | 255 def inputFilter(self, input_, raw): |
256 if self.__saved_overlay and input != ['ctrl s']: | 256 if self.__saved_overlay and input_ != a_key['OVERLAY_HIDE']: |
257 return | 257 return |
258 for i in input: | 258 for i in input_: |
259 if isinstance(i,tuple): | 259 if isinstance(i,tuple): |
260 if i[0] == 'mouse press': | 260 if i[0] == 'mouse press': |
261 if i[1] == 4: #Mouse wheel up | 261 if i[1] == 4: #Mouse wheel up |
262 input[input.index(i)] = 'up' | 262 input_[input_.index(i)] = a_key['HISTORY_PREV'] |
263 if i[1] == 5: #Mouse wheel down | 263 if i[1] == 5: #Mouse wheel down |
264 input[input.index(i)] = 'down' | 264 input_[input_.index(i)] = a_key['HISTORY_NEXT'] |
265 return input | 265 return input_ |
266 | 266 |
267 def keyHandler(self, input_): | 267 def keyHandler(self, input_): |
268 if input_ == a_key['MENU_HIDE']: | 268 if input_ == a_key['MENU_HIDE']: |
269 """User want to (un)hide the menu roller""" | 269 """User want to (un)hide the menu roller""" |
270 try: | 270 try: |