-
-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added WebUI patch to enhance keyboard control on page change (#1144)
Co-authored-by: Jens Maus <mail@jens-maus.de>
- Loading branch information
1 parent
8bb7371
commit 5ed0dc8
Showing
5 changed files
with
107,961 additions
and
0 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
buildroot-external/patches/occu/0114-WebUI-Keyboard-Scroll-Control-After-Page-Change.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
Oops, something went wrong.