Skip to content

Commit

Permalink
added WebUI patch to enhance keyboard control on page change (#1144)
Browse files Browse the repository at this point in the history
Co-authored-by: Jens Maus <mail@jens-maus.de>
  • Loading branch information
theimo1221 and jens-maus authored Feb 19, 2021
1 parent 8bb7371 commit 5ed0dc8
Show file tree
Hide file tree
Showing 5 changed files with 107,961 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
--- occu/WebUI/www/webui/style.css.orig
+++ occu/WebUI/www/webui/style.css
@@ -156,6 +156,8 @@
{
background-color: $_(contentBackground);
overflow: auto;
+ /* Prevent chrome from outlining this by focus */
+ outline: none;
}

/* Kopfzeile */
--- occu/WebUI/www/webui/webui.js.orig
+++ occu/WebUI/www/webui/webui.js
@@ -6867,6 +6867,7 @@

var content = document.createElement("div");
content.id = "content";
+ content.tabIndex = 1;
Element.setStyle(content, {cursor: "wait"});
layer0.appendChild(content);

@@ -7116,6 +7117,11 @@
this.currentPageOptions = options;

this.currentPage.enter(options);
+ window.setTimeout(() => {
+ if(jQuery(':focus').length === 0) {
+ jQuery('#content')[0].focus();
+ }
+ }, 200);
},

reload: function()
Loading

0 comments on commit 5ed0dc8

Please sign in to comment.