diff --git a/src/fenrirscreenreader/core/cursorManager.py b/src/fenrirscreenreader/core/cursorManager.py index 288e6e6f..fb640a57 100644 --- a/src/fenrirscreenreader/core/cursorManager.py +++ b/src/fenrirscreenreader/core/cursorManager.py @@ -99,7 +99,9 @@ class CursorManager(): try: curr_app = self.env['runtime']['ApplicationManager'].get_current_application( ) - if self.env['commandBuffer']['windowArea'][curr_app]['1'] is not None: + if curr_app in self.env['commandBuffer']['windowArea'] and \ + '1' in self.env['commandBuffer']['windowArea'][curr_app] and \ + self.env['commandBuffer']['windowArea'][curr_app]['1'] is not None: return True except Exception as e: self.env['runtime']['DebugManager'].write_debug_out( diff --git a/src/fenrirscreenreader/inputDriver/evdevDriver.py b/src/fenrirscreenreader/inputDriver/evdevDriver.py index 84fea384..626655e6 100644 --- a/src/fenrirscreenreader/inputDriver/evdevDriver.py +++ b/src/fenrirscreenreader/inputDriver/evdevDriver.py @@ -230,7 +230,7 @@ class driver(inputDriver): i_devices_files = [] for device in self.iDevices: - i_devices_files.append(self.iDevices[device].fn) + i_devices_files.append(self.iDevices[device].path) event_type = evdev.events for deviceFile in device_file_list: