From c8055e24fd81c0406d01a36c421f9155300fad76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=99=93=E5=BA=B7?= Date: Mon, 20 Nov 2023 16:26:30 +0800 Subject: [PATCH] resolve oceanbase/odc#228 --- src/locales/must/strings/zh-CN.json | 2 +- src/page/Workspace/components/SQLPage/index.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/locales/must/strings/zh-CN.json b/src/locales/must/strings/zh-CN.json index 1aeaabc11..4472d4a79 100644 --- a/src/locales/must/strings/zh-CN.json +++ b/src/locales/must/strings/zh-CN.json @@ -134,7 +134,7 @@ "portal.connection.form.test.success.cloud": "测试成功,保存后单击连接名称即可登录使用啦!", "odc.components.ConnectionCardList.TheTagHasBeenModified": "修改标签成功", "login.account.valid": "支持英文、数字、下划线和特殊字符(._+@#$%)的组合,长度为 4~48 个字符", - "odc.EditorToolBar.actions.sql.RunF": "运行 F8", + "odc.EditorToolBar.actions.sql.RunF": "运行 F8/Ctrl+Enter", "password.label.confirm1": "确认密码", "odc.TreeNodeMenu.config.table.SingleTableExport": "单表导出", "odc.ImportDrawer.ImportForm.Mode": "模式", diff --git a/src/page/Workspace/components/SQLPage/index.tsx b/src/page/Workspace/components/SQLPage/index.tsx index 25a841a06..e079cc8f7 100644 --- a/src/page/Workspace/components/SQLPage/index.tsx +++ b/src/page/Workspace/components/SQLPage/index.tsx @@ -277,7 +277,7 @@ export class SQLPage extends Component { this.editor.addAction({ id: 'sql_executeSql', label: 'execute', - keybindings: [monaco.KeyCode.F8], + keybindings: [monaco.KeyCode.F8, monaco.KeyMod.CtrlCmd | monaco.KeyCode.Enter], run: () => this.handleExecuteSQL(), }); this.editor.addAction({