From 112a67f21e6669bcdad027ac5a550b870b26bd71 Mon Sep 17 00:00:00 2001 From: phil294 Date: Sun, 21 May 2023 23:46:13 +0200 Subject: [PATCH] focus scroller on startup so immediate keyboard scrolling is possible --- web/src/views/MainView.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/web/src/views/MainView.coffee b/web/src/views/MainView.coffee index 0f26459..ab7c433 100644 --- a/web/src/views/MainView.coffee +++ b/web/src/views/MainView.coffee @@ -253,6 +253,7 @@ export default document.addEventListener 'keyup', (e) => if e.key == "Escape" selected_commits.value = [] + commits_scroller_ref.value.$el.focus() # It didn't work with normal context binding to the scroller's commit elements, either a bug