mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-23 09:23:48 +01:00
Don't need for shift key
This commit is contained in:
parent
7b6665653e
commit
d8a7e14294
@ -125,10 +125,10 @@ function onDrop(ev: DragEvent): void {
|
|||||||
|
|
||||||
function onKeydown(ev: KeyboardEvent) {
|
function onKeydown(ev: KeyboardEvent) {
|
||||||
typing();
|
typing();
|
||||||
if ((ev.key === 'Enter') && (ev.ctrlKey || ev.metaKey || ev.shiftKey) && canSend) {
|
if ((ev.key === 'Enter') && (ev.ctrlKey || ev.metaKey)) {
|
||||||
textEl.value += '\n'
|
textEl.value += '\n'
|
||||||
}
|
}
|
||||||
else if (ev.key === 'Enter' && canSend) {
|
else if (ev.key === 'Enter' && !ev.shiftKey && canSend) {
|
||||||
send();
|
send();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user