diff options
author | Alexander_Kabui | 2024-08-13 11:52:41 +0300 |
---|---|---|
committer | BonfaceKilz | 2024-08-29 18:58:56 +0300 |
commit | a1990202cd1692ab718e3fa4ec44455e19fc1671 (patch) | |
tree | 68a7ffd886dc8a36bdd8119327aaea9b0cdafebf /gn2/wqflask/templates/gn_editor.html | |
parent | 495c6e926b86e71a7a8a62b3df0c7e691ab66ac8 (diff) | |
download | genenetwork2-a1990202cd1692ab718e3fa4ec44455e19fc1671.tar.gz |
Add keyboard binding option.
Diffstat (limited to 'gn2/wqflask/templates/gn_editor.html')
-rw-r--r-- | gn2/wqflask/templates/gn_editor.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gn2/wqflask/templates/gn_editor.html b/gn2/wqflask/templates/gn_editor.html index 4116c398..4d449b75 100644 --- a/gn2/wqflask/templates/gn_editor.html +++ b/gn2/wqflask/templates/gn_editor.html @@ -21,7 +21,7 @@ <ul class="nav navbar-nav navbar-right"> <li><a href="#" hx-get="/editor/commit" hx-target="#output" hx-trigger="click" hx-swap="innerHTML" >Commit </a></li> <li><a href="#" hx-get="/editor/settings" hx-target="#output" hx-trigger="click" hx-swap="innerHTML" >Settings </a></li> - <li><a href="#">Help</a></li> + <li><a href="https://github.com/ajaxorg/ace/wiki/Default-Keyboard-Shortcuts" target="_blank">Help</a></li> </ul> </div> </div> @@ -73,7 +73,7 @@ behavioursEnabled: true, // boolean: true if enable custom behaviours wrapBehavioursEnabled: true, // boolean autoScrollEditorIntoView: undefined, // boolean: this is needed if editor is inside scrollable - keyboardHandler: null, // function: handle custom keyboard events + keyboardHandler: "ace/keyboard/emacs", // renderer options animatedScroll: false, // boolean: true if scroll should be animated @@ -96,7 +96,7 @@ maxPixelHeight: 0, // number -> maxLines: set the maximum height in pixel, when 'maxLines' is defined. scrollPastEnd: 0, // number -> !maxLines: if positive, user can scroll pass the last line and go n * editorHeight more distance fixedWidthGutter: false, // boolean: true if the gutter should be fixed width - theme: "ace/theme/dracula", // theme string from ace/theme or custom? + theme: "ace/theme/text", // theme string from ace/theme or custom? scrollSpeed: 2, // number: the scroll speed index dragDelay: 0, dragEnabled: true, // boolean: enable dragging |