From a983965c96dfd758c55546805ffca02336906e6a Mon Sep 17 00:00:00 2001 From: arbadacarba <63317640+arbadacarbaYK@users.noreply.github.com> Date: Wed, 17 Apr 2024 15:16:03 +0200 Subject: [PATCH] Should fix #18 --- templates/boltcards/display.html | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/templates/boltcards/display.html b/templates/boltcards/display.html index 96b42f5..5c648a3 100644 --- a/templates/boltcards/display.html +++ b/templates/boltcards/display.html @@ -13,7 +13,7 @@ - + ${item.label} ${card[item.value]} @@ -139,6 +139,16 @@ position: position || 'bottom' }) }) + }, + handlePaste(event, value) { + event.preventDefault(); + const clipboardData = event.clipboardData || window.clipboardData; + const pastedText = clipboardData.getData('text'); + this.card[value] = pastedText; // Update the field with pasted content + this.$q.notify({ + message: 'Pasted from clipboard!', + position: 'bottom' + }); } } })