From a1990202cd1692ab718e3fa4ec44455e19fc1671 Mon Sep 17 00:00:00 2001 From: Alexander_Kabui Date: Tue, 13 Aug 2024 11:52:41 +0300 Subject: Add keyboard binding option. --- gn2/wqflask/templates/gn_editor.html | 6 +++--- gn2/wqflask/templates/gn_editor_settings.html | 25 ++++++++++++++++++++++++- 2 files changed, 27 insertions(+), 4 deletions(-) (limited to 'gn2/wqflask') 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 @@
@@ -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 diff --git a/gn2/wqflask/templates/gn_editor_settings.html b/gn2/wqflask/templates/gn_editor_settings.html index 769fe23d..62ab4f6a 100644 --- a/gn2/wqflask/templates/gn_editor_settings.html +++ b/gn2/wqflask/templates/gn_editor_settings.html @@ -63,6 +63,26 @@