Skip to content

Commit aa7e2ef

Browse files
committed
readd autohide_element_bars setting
1 parent f7d0e6c commit aa7e2ef

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

Chromium (.crx)/includes/modern_scroll.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ async function load_prefs() {
6161
contextmenu_show_when: "2", // 1 = never, 2 = only over interface, 3 = always
6262

6363
style_element_bars: "1",
64-
autohide_element_bars: "0", // largely broken in Blink
64+
autohide_element_bars: "0",
6565

6666
show_superbar: "0",
6767
show_superbar_minipage: "1",
@@ -1742,12 +1742,10 @@ function preventScrolling(e){ stopEvent(e); window.removeEventListener("keydown"
17421742
function modifierkey_pressed(e){ return (e.ctrlKey || e.shiftKey || e.altKey || e.metaKey); }
17431743

17441744
function target_is_input(e){
1745-
if( e.target.tagName === "TEXTAREA" || e.target.tagName === "SELECT" ||
1746-
(e.target.tagName === "INPUT" && e.target.type !== "submit" && e.target.type !== "reset" && e.target.type !== "button" && e.target.type !== "image" && e.target.type !== "checkbox" && (e.target.type !== "range" || e.which === 37 || e.which === 39)) ||
1747-
e.target.contentEditable === "true" || e.target.contentEditable === "plaintext-only" || e.target.parentNode.contentEditable === "true" ||
1748-
e.target.shadowRoot !== null /* don't handle custom widgets */)
1749-
return true;
1750-
else return false;
1745+
return (e.target.tagName === "TEXTAREA" || e.target.tagName === "SELECT" ||
1746+
(e.target.tagName === "INPUT" && e.target.type !== "submit" && e.target.type !== "reset" && e.target.type !== "button" && e.target.type !== "image" && (e.target.type !== "checkbox" || e.which === 32) && (e.target.type !== "range" || e.which === 37 || e.which === 39)) ||
1747+
e.target.contentEditable === "true" || e.target.contentEditable === "plaintext-only" || e.target.parentNode.contentEditable === "true" ||
1748+
e.target.shadowRoot !== null /* don't handle custom widgets */);
17511749
}
17521750

17531751
function isLink(node){

Chromium (.crx)/options/options.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,12 @@ <h4 id="element_bars" data-i18n="element_bars"></h4>
151151
<div id="element_bars_info" class="i" tabindex="0">i<div id="element_bars_info_text" class="i_text">
152152
<span data-i18n="explanation_element_bars"></span>
153153
</div></div>
154+
<div class="toggle-container">
155+
<input type="checkbox" id="autohide_element_bars" name="autohide_element_bars"> <label for="autohide_element_bars" data-i18n="autohide_element_bars"></label>
156+
<div id="autohide_element_bars_info" class="i">i<div id="autohide_element_bars_info_text" class="i_text">
157+
<span data-i18n="explanation_autohide_element_bars"></span>
158+
</div></div>
159+
</div>
154160
</fieldset>
155161

156162
<fieldset>

Chromium (.crx)/options/prefs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ async function restorePrefs() {
122122
contextmenu_show_when: "2", // 1 = never, 2 = only over interface, 3 = always
123123

124124
style_element_bars: "1",
125-
autohide_element_bars: "0", // largely broken in Blink
125+
autohide_element_bars: "0",
126126

127127
show_superbar: "0",
128128
show_superbar_minipage: "1",

0 commit comments

Comments
 (0)