fix function name

This commit is contained in:
chrys 2018-05-13 23:16:22 +02:00
parent 0d74ae0d96
commit 26fcd92f81

View File

@ -250,7 +250,7 @@ class driver(inputDriver):
if not self._initialized: if not self._initialized:
return return
for fd in self.iDevices: for fd in self.iDevices:
self.ungrabDevices(fd) self.ungrabDevice(fd)
def addDevice(self, fd): def addDevice(self, fd):
if not self.env['runtime']['settingsManager'].getSettingAsBool('keyboard', 'grabDevices'): if not self.env['runtime']['settingsManager'].getSettingAsBool('keyboard', 'grabDevices'):
self.uDevices[fd] = None self.uDevices[fd] = None
@ -279,7 +279,7 @@ class driver(inputDriver):
self.gDevices[fd] = True self.gDevices[fd] = True
except Exception as e: except Exception as e:
self.env['runtime']['debug'].writeDebugOut('InputDriver evdev: grabing not possible: ' + str(e),debug.debugLevel.ERROR) self.env['runtime']['debug'].writeDebugOut('InputDriver evdev: grabing not possible: ' + str(e),debug.debugLevel.ERROR)
def ungrabDevices(self,fd): def ungrabDevice(self,fd):
if not self.env['runtime']['settingsManager'].getSettingAsBool('keyboard', 'grabDevices'): if not self.env['runtime']['settingsManager'].getSettingAsBool('keyboard', 'grabDevices'):
return return
try: try:
@ -290,7 +290,7 @@ class driver(inputDriver):
def removeDevice(self,fd): def removeDevice(self,fd):
self.clearEventBuffer() self.clearEventBuffer()
try: try:
self.ungrabDevices(fd) self.ungrabDevice(fd)
except: except:
pass pass
try: try: