From 31ad2ffd00390f7db61f7a77f2eebb5ebba39e15 Mon Sep 17 00:00:00 2001 From: Matt Blenkinsop Date: Wed, 6 Dec 2023 15:13:20 +0000 Subject: [PATCH] Bug 35498: Allow tab to indent lines and trigger autocomplete This patch allows the tab key to indent lines as well as trigger autocomplete. Test plan: 1) Apply patch, navigate to reports and create a new SQL report 2) Click in the text editor and press tab, it should indent and then trigger the autocomplete options 3) Type something to select from the autocomplete box and press tab - it should autocomplete that option 4) Type any word and then press space. Now press tab and it should indent again Signed-off-by: Andrew Fuerste-Henry Signed-off-by: Lucas Gass Signed-off-by: Katrin Fischer (cherry picked from commit f9b3866ebfa78b39dcf6aac6ef4c0e1a5679f7f9) Signed-off-by: Fridolin Somers (cherry picked from commit ef1255372d01302e5605c005dfb37749f714ed18) Signed-off-by: Lucas Gass --- .../prog/en/modules/reports/guided_reports_start.tt | 1 - 1 file changed, 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt index 5b76c7dd4f..27e843a3fc 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt @@ -1542,7 +1542,6 @@ "\\[\\[(.*?)\\]\\]":"style1", "<<(.*?)>>":"style1" }, - extraKeys: {"Tab": "autocomplete"}, //enable tab to accept auto-complete hint: CodeMirror.hint.sql, hintOptions: { tables: [% To.json(tables) | $raw %] -- 2.39.5