feat: use Backspace for move to parent directory in FileExplorer

Signed-off-by: Boris Yumankulov <boria138@altlinux.org>
This commit is contained in:
2025-08-23 11:12:15 +05:00
parent 0294c90c54
commit 09028931be

View File

@@ -765,6 +765,11 @@ class InputManager(QObject):
app.quit()
return True
# Handle Backspace for FileExplorer navigation (move to parent directory)
if key == Qt.Key.Key_Backspace and self.file_explorer:
self.file_explorer.previous_dir()
return True
# Close AddGameDialog with Escape
if key == Qt.Key.Key_Escape and isinstance(popup, QDialog):
popup.reject()