Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

希望能选择发送消息是 Enter 还是 Ctrl+Enter 触发 #67

Open
teatube opened this issue Apr 29, 2022 · 3 comments
Open

希望能选择发送消息是 Enter 还是 Ctrl+Enter 触发 #67

teatube opened this issue Apr 29, 2022 · 3 comments

Comments

@teatube
Copy link

teatube commented Apr 29, 2022

强制Ctrl+Enter发送确实不习惯...
@Lin6b
Copy link

Lin6b commented May 18, 2022

确实,希望能增加

@jzj083271930
Copy link

C:\Users\Administrator.vscode\extensions\takayama.vscode-qq-1.4.2\assets\default-theme\app.js
查看if (event.ctrlKey && event.keyCode === 13),修改为if (event.keyCode === 13)即可

@238Ver
Copy link

238Ver commented Aug 20, 2022

若是还想要ctrl + enter换行的功能,就在楼上提到的文件中 加入
if (event.ctrlKey && event.keyCode === 13) {
document.getElementById("content").value = document.getElementById("content").value + '\n';
}
即可

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants