diff --git a/src/versions/solarfm-0.0.1/SolarFM/new/solarfm/signal_classes/KeyboardSignalsMixin.py b/src/versions/solarfm-0.0.1/SolarFM/new/solarfm/signal_classes/KeyboardSignalsMixin.py index c0375f7..b397027 100644 --- a/src/versions/solarfm-0.0.1/SolarFM/new/solarfm/signal_classes/KeyboardSignalsMixin.py +++ b/src/versions/solarfm-0.0.1/SolarFM/new/solarfm/signal_classes/KeyboardSignalsMixin.py @@ -14,6 +14,12 @@ valid_keyvalue_pat = re.compile(r"[a-z0-9A-Z-_\[\]\(\)\| ]") class KeyboardSignalsMixin: + def unset_keys_and_data(self, widget=None, eve=None): + self.ctrlDown = False + self.shiftDown = False + self.altDown = False + self.is_searching = False + def global_key_press_controller(self, eve, user_data): keyname = Gdk.keyval_name(user_data.keyval).lower() if "control" in keyname or "alt" in keyname or "shift" in keyname: diff --git a/src/versions/solarfm-0.0.1/SolarFM/new/solarfm/signal_classes/mixins/WindowMixin.py b/src/versions/solarfm-0.0.1/SolarFM/new/solarfm/signal_classes/mixins/WindowMixin.py index 1068ed2..5bdfd66 100644 --- a/src/versions/solarfm-0.0.1/SolarFM/new/solarfm/signal_classes/mixins/WindowMixin.py +++ b/src/versions/solarfm-0.0.1/SolarFM/new/solarfm/signal_classes/mixins/WindowMixin.py @@ -179,11 +179,7 @@ class WindowMixin(TabMixin): fileName = store[item][1] dir = view.get_current_directory() - file = "" - if fileName.endswith("/"): - file = f"{dir}/{fileName}" - else: - file = f"{dir}/{fileName}/" + file = f"{dir}/{fileName}" if isdir(file): view.set_path(file)