don't open file dialog in enter

This commit is contained in:
DJ2LS 2024-05-11 12:37:49 +02:00
parent cb2a346c26
commit 37fc58865e

View file

@ -136,9 +136,6 @@ function resetFile(event){
ChartJS.register( ChartJS.register(
CategoryScale, CategoryScale,
LinearScale, LinearScale,
@ -263,7 +260,7 @@ const speedChartData = computed(() => ({
<!-- trigger file selection modal --> <!-- trigger file selection modal -->
<button type="button" class="btn btn-outline-secondary border-0 rounded-pill me-1" @click="triggerFileInput"> <button type="button" class="btn btn-outline-secondary border-0 rounded-pill me-1" @click="triggerFileInput(), $event.target.blur()">
<i class="bi bi-paperclip" style="font-size: 1.2rem"></i> <i class="bi bi-paperclip" style="font-size: 1.2rem"></i>
</button> </button>
@ -274,7 +271,7 @@ const speedChartData = computed(() => ({
ref="chatModuleMessage" ref="chatModuleMessage"
placeholder="Message - Send with [Enter]" placeholder="Message - Send with [Enter]"
v-model="chat.inputText" v-model="chat.inputText"
@keyup.enter.exact="transmitNewMessage()" @keyup.enter="transmitNewMessage()"
></textarea> ></textarea>