Fix regarding held key and window unfocus issues

This commit is contained in:
itdominator 2021-12-26 00:32:45 -06:00
parent dec28e31cf
commit 333377d4f6
2 changed files with 7 additions and 5 deletions

View File

@ -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:

View File

@ -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)