Fix regarding held key and window unfocus issues
This commit is contained in:
parent
dec28e31cf
commit
333377d4f6
|
@ -14,6 +14,12 @@ valid_keyvalue_pat = re.compile(r"[a-z0-9A-Z-_\[\]\(\)\| ]")
|
||||||
|
|
||||||
|
|
||||||
class KeyboardSignalsMixin:
|
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):
|
def global_key_press_controller(self, eve, user_data):
|
||||||
keyname = Gdk.keyval_name(user_data.keyval).lower()
|
keyname = Gdk.keyval_name(user_data.keyval).lower()
|
||||||
if "control" in keyname or "alt" in keyname or "shift" in keyname:
|
if "control" in keyname or "alt" in keyname or "shift" in keyname:
|
||||||
|
|
|
@ -179,11 +179,7 @@ class WindowMixin(TabMixin):
|
||||||
|
|
||||||
fileName = store[item][1]
|
fileName = store[item][1]
|
||||||
dir = view.get_current_directory()
|
dir = view.get_current_directory()
|
||||||
file = ""
|
|
||||||
if fileName.endswith("/"):
|
|
||||||
file = f"{dir}/{fileName}"
|
file = f"{dir}/{fileName}"
|
||||||
else:
|
|
||||||
file = f"{dir}/{fileName}/"
|
|
||||||
|
|
||||||
if isdir(file):
|
if isdir(file):
|
||||||
view.set_path(file)
|
view.set_path(file)
|
||||||
|
|
Loading…
Reference in New Issue