Module: check_mk
Branch: master
Commit: ab6cc5aebb749923988c8ffb103f0450732b8b68
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ab6cc5aebb7499…
Author: Roland Halbig <rh(a)mathias-kettner.de>
Date: Thu Feb 23 14:55:44 2017 +0100
htmllib: fixed refactoring bug.
Change-Id: I807b64d03a179241c7a43737efee97dcb366a4d6
---
web/htdocs/htmllib.py | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/web/htdocs/htmllib.py b/web/htdocs/htmllib.py
index 380f61d..a0d5815 100644
--- a/web/htdocs/htmllib.py
+++ b/web/htdocs/htmllib.py
@@ -2759,6 +2759,23 @@ class html(HTMLGenerator, Encoder, RequestHandler):
#
+ # Keyboard control
+ # TODO: Can we move this specific feature to AQ?
+ #
+
+ def add_keybinding(self, keylist, jscode):
+ self.keybindings.append([keylist, jscode])
+
+
+ def add_keybindings(self, bindings):
+ self.keybindings += bindings
+
+
+ def disable_keybindings(self):
+ self.keybindings_enabled = False
+
+
+ #
# FIXME: Legacy functions
#