initial key foreward
This commit is contained in:
parent
83358947ac
commit
255e54ecea
@ -18,3 +18,4 @@
|
|||||||
#=toggle_output
|
#=toggle_output
|
||||||
#=toggle_autoRead
|
#=toggle_autoRead
|
||||||
#=quit_fenrir
|
#=quit_fenrir
|
||||||
|
#=foreward_keypress
|
||||||
|
@ -18,3 +18,4 @@
|
|||||||
#=toggle_output
|
#=toggle_output
|
||||||
#=toggle_autoRead
|
#=toggle_autoRead
|
||||||
#=quit_fenrir
|
#=quit_fenrir
|
||||||
|
#=foreward_keypress
|
||||||
|
@ -18,3 +18,4 @@
|
|||||||
#=toggle_output
|
#=toggle_output
|
||||||
#=toggle_autoRead
|
#=toggle_autoRead
|
||||||
#=quit_fenrir
|
#=quit_fenrir
|
||||||
|
#=foreward_keypress
|
||||||
|
@ -21,7 +21,7 @@ class inputManager():
|
|||||||
for event in self.iDevices[fd].read():
|
for event in self.iDevices[fd].read():
|
||||||
if self.isFenrirKey(environment, event): # a
|
if self.isFenrirKey(environment, event): # a
|
||||||
environment['input']['consumeKey'] = not environment['input']['keyForeward']
|
environment['input']['consumeKey'] = not environment['input']['keyForeward']
|
||||||
if not environment['input']['consumeKey']:
|
if not environment['input']['consumeKey'] or environment['input']['keyForeward']:
|
||||||
self.uDevices[fd].write_event(event)
|
self.uDevices[fd].write_event(event)
|
||||||
self.uDevices[fd].syn()
|
self.uDevices[fd].syn()
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user