diff --git a/dashboard/src/views/ChatPage.vue b/dashboard/src/views/ChatPage.vue
index f3c0227a5..e921080fc 100644
--- a/dashboard/src/views/ChatPage.vue
+++ b/dashboard/src/views/ChatPage.vue
@@ -49,6 +49,12 @@ marked.setOptions({
style="background-color: #eee; padding-left: 4px; padding-right: 4px; margin: 2px; border-radius: 4px;">/help
获取帮助 😊
+
+ 按
+ K
+ 开始语音 🎤
+
@@ -90,15 +96,21 @@ marked.setOptions({
-
-
+
+
+
+
+
+
+
@@ -161,6 +173,18 @@ export default {
this.getConversations();
let inputField = document.getElementById('input-field');
inputField.addEventListener('paste', this.handlePaste);
+ inputField.addEventListener('keydown', function (e) {
+ console.log(e);
+ if (e.keyCode == 13 && !e.shiftKey) {
+ e.preventDefault();
+ this.sendMessage();
+ }
+ }.bind(this));
+ document.addEventListener('keydown', function (e) {
+ if (e.keyCode == 75) {
+ this.isRecording ? this.stopRecording() : this.startRecording();
+ }
+ }.bind(this));
},
methods: {