fix grab ungrab while input
This commit is contained in:
parent
8bed7ce8e2
commit
28f29154cb
@ -45,7 +45,7 @@ fenrirMaxRate=890
|
||||
|
||||
[braille]
|
||||
enabled=True
|
||||
driver=brlttyDriver
|
||||
driver=dummyDriver
|
||||
#layout=en
|
||||
# to what should the flush timeout relate to
|
||||
# word = flush after (number of words to display) * seconds
|
||||
|
@ -83,6 +83,7 @@ class fenrirManager():
|
||||
else:
|
||||
self.environment['runtime']['inputManager'].writeEventBuffer()
|
||||
if self.environment['runtime']['inputManager'].noKeyPressed():
|
||||
self.environment['runtime']['inputManager'].handleDeviceGrab()
|
||||
self.modifierInput = False
|
||||
self.singleKeyCommand = False
|
||||
if self.environment['input']['keyForeward'] > 0:
|
||||
|
@ -59,7 +59,6 @@ class inputManager():
|
||||
if not self.env['runtime']['settingsManager'].getSettingAsBool('keyboard', 'grabDevices'):
|
||||
self.executeDeviceGrab = False
|
||||
return
|
||||
print(self.env['runtime']['screenManager'].getCurrScreenIgnored())
|
||||
if self.env['runtime']['screenManager'].getCurrScreenIgnored():
|
||||
while not self.ungrabAllDevices():
|
||||
time.sleep(0.2)
|
||||
@ -140,7 +139,6 @@ class inputManager():
|
||||
self.env['runtime']['debug'].writeDebugOut("currInput " + str(self.env['input']['currInput'] ) ,debug.debugLevel.INFO)
|
||||
if self.noKeyPressed():
|
||||
self.env['input']['prevInput'] = []
|
||||
self.handleDeviceGrab()
|
||||
|
||||
def handleLedStates(self, mEvent):
|
||||
try:
|
||||
|
@ -159,6 +159,8 @@ class remoteManager():
|
||||
def setSettings(self, settingsArgs):
|
||||
self.env['runtime']['settingsManager'].parseSettingArgs(settingsArgs)
|
||||
self.env['runtime']['screenManager'].updateScreenIgnored()
|
||||
self.env['runtime']['inputManager'].setExecuteDeviceGrab()
|
||||
self.env['runtime']['inputManager'].handleDeviceGrab()
|
||||
def handleRemoteIncomming(self, eventData):
|
||||
if not eventData:
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user