From 66ce8abe0156d014c5bbf49e06e8b55cab6fd623 Mon Sep 17 00:00:00 2001 From: Ruan Lucas <79365912+RuanLucasGD@users.noreply.github.com> Date: Thu, 24 Nov 2022 23:58:24 -0400 Subject: [PATCH] Adds side mouse button shortcuts to the Content window --- Source/Editor/Windows/ContentWindow.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Source/Editor/Windows/ContentWindow.cs b/Source/Editor/Windows/ContentWindow.cs index 90cd77d11..3cac8c434 100644 --- a/Source/Editor/Windows/ContentWindow.cs +++ b/Source/Editor/Windows/ContentWindow.cs @@ -895,6 +895,16 @@ namespace FlaxEditor.Windows } } + /// + public override bool OnMouseDown(Float2 location, MouseButton button) + { + // Navigate through directories using the side mouse buttons + if (button == MouseButton.Extended1) NavigateBackward(); + else if (button == MouseButton.Extended2) NavigateForward(); + + return base.OnMouseDown(location, button); + } + /// public override bool OnMouseUp(Float2 location, MouseButton button) {