[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
From: |
Gavin D. Smith |
Date: |
Wed, 30 Nov 2022 13:36:39 -0500 (EST) |
branch: old/qt-info
commit ae9dda219d1a9889b1f41d43f03edbee39b7ab17
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Fri Apr 12 14:44:57 2019 +0100
support m for menu. (only works once, though)
---
js/docbrowser/qtinfo.js | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/js/docbrowser/qtinfo.js b/js/docbrowser/qtinfo.js
index 2c00163b21..580da49d7a 100644
--- a/js/docbrowser/qtinfo.js
+++ b/js/docbrowser/qtinfo.js
@@ -90,6 +90,7 @@ function wc_init()
/* Return true if the standard function doesn't need to be called. */
function web_channel_override (store, action)
{
+ var state = store.state;
switch (action.type)
{
case "external-manual":
@@ -100,7 +101,15 @@ function web_channel_override (store, action)
case "input":
{
if (action.input == "index")
- window.core.show_text_input (action.input, store.state.index);
+ window.core.show_text_input (action.input, state.index);
+ else if (action.input == "menu")
+ {
+ var current_menu = state.loaded_nodes[state.current].menu;
+ if (current_menu)
+ window.core.show_text_input (action.input, current_menu);
+ else
+ store.dispatch (actions.warn ("No menu in this node"));
+ }
return 1;
}
default:
- [no subject], (continued)
- [no subject], Gavin D. Smith, 2022/11/30
- [no subject], Gavin D. Smith, 2022/11/30
- [no subject], Gavin D. Smith, 2022/11/30
- [no subject], Gavin D. Smith, 2022/11/30
- [no subject], Gavin D. Smith, 2022/11/30
- [no subject], Gavin D. Smith, 2022/11/30
- [no subject], Gavin D. Smith, 2022/11/30
- [no subject], Gavin D. Smith, 2022/11/30
- [no subject], Gavin D. Smith, 2022/11/30
- [no subject], Gavin D. Smith, 2022/11/30
- [no subject],
Gavin D. Smith <=
- [no subject], Gavin D. Smith, 2022/11/30
- [no subject], Gavin D. Smith, 2022/11/30
- [no subject], Gavin D. Smith, 2022/11/30
- [no subject], Gavin D. Smith, 2022/11/30
- [no subject], Gavin D. Smith, 2022/11/30
- [no subject], Gavin D. Smith, 2022/11/30
- [no subject], Gavin D. Smith, 2022/11/30
- [no subject], Gavin D. Smith, 2022/11/30
- [no subject], Gavin D. Smith, 2022/11/30
- [no subject], Gavin D. Smith, 2022/11/30