mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 13:01:52 +00:00
Asset Browser: Handle navigation hotkeys only when directory is hovered
This commit is contained in:
@@ -689,7 +689,9 @@ namespace GlitchyEditor.EditWindows
|
||||
/// Renders the contents of _currentDirectory. Returns the node of the current directory, or null if the browser isn't in a directory.
|
||||
private void DrawCurrentDirectory(TreeNode<AssetNode> currentDirectoryNode)
|
||||
{
|
||||
// TODO: Yes we really have to come up with a good system for hotkeys...
|
||||
if (ImGui.IsWindowHovered())
|
||||
{
|
||||
// TODO: Come up with a good hotkey system...
|
||||
var currentDirectoryNode;
|
||||
if (Input.IsKeyPressed(.Alt))
|
||||
{
|
||||
@@ -711,11 +713,13 @@ namespace GlitchyEditor.EditWindows
|
||||
|
||||
if (Input.IsMouseButtonPressing(.XButton1))
|
||||
{
|
||||
NavigateForward();
|
||||
NavigateBack();
|
||||
}
|
||||
|
||||
if (Input.IsMouseButtonPressing(.XButton2))
|
||||
{
|
||||
NavigateBack();
|
||||
NavigateForward();
|
||||
}
|
||||
}
|
||||
|
||||
List<TreeNode<AssetNode>> directoryEntries = null;
|
||||
|
||||
Reference in New Issue
Block a user