From 2c7ab27ca2cc371e2e96bfa05b2fee4ada96d631 Mon Sep 17 00:00:00 2001 From: Joshua Lester Date: Tue, 8 Oct 2024 16:12:25 -0700 Subject: [PATCH 1/6] Ctrl+M now opens/closes sidebar --- EssentialCSharp.Web/wwwroot/js/site.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/EssentialCSharp.Web/wwwroot/js/site.js b/EssentialCSharp.Web/wwwroot/js/site.js index c76f5c54..4d0bde8e 100644 --- a/EssentialCSharp.Web/wwwroot/js/site.js +++ b/EssentialCSharp.Web/wwwroot/js/site.js @@ -171,6 +171,10 @@ const app = createApp({ goToPrevious(); } } + debugger; + if (e.code == "KeyM" && e.ctrlKey) { + sidebarShown.value = !sidebarShown.value; + } }); const sidebarShown = ref(false); From e06b6646eea8e62ec499d9231152008c4a50114a Mon Sep 17 00:00:00 2001 From: Joshua Lester Date: Tue, 8 Oct 2024 16:14:32 -0700 Subject: [PATCH 2/6] Remove debugger --- EssentialCSharp.Web/wwwroot/js/site.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EssentialCSharp.Web/wwwroot/js/site.js b/EssentialCSharp.Web/wwwroot/js/site.js index 4d0bde8e..2f1f34ea 100644 --- a/EssentialCSharp.Web/wwwroot/js/site.js +++ b/EssentialCSharp.Web/wwwroot/js/site.js @@ -171,7 +171,7 @@ const app = createApp({ goToPrevious(); } } - debugger; + if (e.code == "KeyM" && e.ctrlKey) { sidebarShown.value = !sidebarShown.value; } From c9208cea96a8bb9e8755890085127931929f60e4 Mon Sep 17 00:00:00 2001 From: Joshua Lester Date: Thu, 10 Oct 2024 13:42:49 -0700 Subject: [PATCH 3/6] Added tooltip for sidebar button --- .../Views/Shared/_Layout.cshtml | 7 ++++-- EssentialCSharp.Web/wwwroot/css/styles.css | 23 +++++++++++++++++++ 2 files changed, 28 insertions(+), 2 deletions(-) diff --git a/EssentialCSharp.Web/Views/Shared/_Layout.cshtml b/EssentialCSharp.Web/Views/Shared/_Layout.cshtml index 9e1b56a1..165bce7a 100644 --- a/EssentialCSharp.Web/Views/Shared/_Layout.cshtml +++ b/EssentialCSharp.Web/Views/Shared/_Layout.cshtml @@ -94,8 +94,11 @@