docs: def react_to_event(self, event):
          """Check whether the given event should be handled
  
          Checks, whether the editor widget has the focus and whether the selected state machine corresponds to the
          state machine of this editor.
  
          :param event: GTK event object
          :return: True if the event should be handled, else False
          :rtype: bool
          """
          if not react_to_event(self.view, self.view.editor, event):
              return False
          if not rafcon.gui.singleton.state_machine_manager_model.selected_state_machine_id == \
                  self.model.state_machine.state_machine_id:
              return False
          return True