Don't need for shift key
This commit is contained in:
parent
50a7d10f27
commit
49c4d345f2
1 changed files with 2 additions and 2 deletions
|
@ -125,10 +125,10 @@ function onDrop(ev: DragEvent): void {
|
|||
|
||||
function onKeydown(ev: KeyboardEvent) {
|
||||
typing();
|
||||
if ((ev.key === 'Enter') && (ev.ctrlKey || ev.metaKey || ev.shiftKey) && canSend) {
|
||||
if ((ev.key === 'Enter') && (ev.ctrlKey || ev.metaKey)) {
|
||||
textEl.value += '\n'
|
||||
}
|
||||
else if (ev.key === 'Enter' && canSend) {
|
||||
else if (ev.key === 'Enter' && !ev.shiftKey && canSend) {
|
||||
send();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue