mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-16 06:15:58 +00:00
add fade-in to shortcut help overlay
This commit is contained in:
3
prefs.js
3
prefs.js
@@ -1754,7 +1754,8 @@ function pref_hotkey_handler(e) {
|
|||||||
|
|
||||||
if (keycode == 191 && shift_key) { // ?
|
if (keycode == 191 && shift_key) { // ?
|
||||||
if (!Element.visible("hotkey_help_overlay")) {
|
if (!Element.visible("hotkey_help_overlay")) {
|
||||||
Element.show("hotkey_help_overlay");
|
//Element.show("hotkey_help_overlay");
|
||||||
|
Effect.Appear("hotkey_help_overlay", {duration : 0.3});
|
||||||
} else {
|
} else {
|
||||||
Element.hide("hotkey_help_overlay");
|
Element.hide("hotkey_help_overlay");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ window.onload = init;
|
|||||||
</div> -->
|
</div> -->
|
||||||
|
|
||||||
<div class='prefKbdHelp'>
|
<div class='prefKbdHelp'>
|
||||||
<img src="images/small_question.png" alt="?"> <a href='#' onclick="Element.show('hotkey_help_overlay')">Keyboard shortcuts</a>
|
<img src="images/small_question.png" alt="?"> <a href='#' onclick="Effect.Appear('hotkey_help_overlay', {duration: 0.3})">Keyboard shortcuts</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="firstTab"> </div>
|
<div class="firstTab"> </div>
|
||||||
|
|||||||
@@ -530,7 +530,8 @@ function quickMenuGo(opid) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (opid == "qmcHKhelp") {
|
if (opid == "qmcHKhelp") {
|
||||||
Element.show("hotkey_help_overlay");
|
//Element.show("hotkey_help_overlay");
|
||||||
|
Effect.Appear("hotkey_help_overlay", {duration : 0.3});
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
@@ -973,7 +974,8 @@ function hotkey_handler(e) {
|
|||||||
|
|
||||||
if (keycode == 191 && shift_key) { // ?
|
if (keycode == 191 && shift_key) { // ?
|
||||||
if (!Element.visible("hotkey_help_overlay")) {
|
if (!Element.visible("hotkey_help_overlay")) {
|
||||||
Element.show("hotkey_help_overlay");
|
//Element.show("hotkey_help_overlay");
|
||||||
|
Effect.Appear("hotkey_help_overlay", {duration : 0.3});
|
||||||
} else {
|
} else {
|
||||||
Element.hide("hotkey_help_overlay");
|
Element.hide("hotkey_help_overlay");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user