Unexpected-Keyboard icon indicating copy to clipboard operation
Unexpected-Keyboard copied to clipboard

[BUG] Clipboard Paste

Open JeelsBoobz opened this issue 6 months ago • 7 comments

        function copyToClipboard(text) {
            const tempInput = document.createElement('input');
            tempInput.value = text;
            document.body.appendChild(tempInput);
            tempInput.select();
            document.execCommand('copy');
            document.body.removeChild(tempInput);
            Swal.fire({
                icon: 'success',
                title: 'Copied!',
                confirmButtonText: 'OK',
                background: '#343a40',
                color: '#ffffff',
            });
        }

Can't paste from copy to clipboard HTML

JeelsBoobz avatar Jul 18 '25 09:07 JeelsBoobz

I don't understand what you mean with this snippet of code. Can you explain in which situation you encounter the bug ?

Julow avatar Jul 19 '25 15:07 Julow

I don't understand what you mean with this snippet of code. Can you explain in which situation you encounter the bug ?

This is an example of copying code in HTML. When copied successfully, the copied text doesn't appear when pasted using the keyboard.

JeelsBoobz avatar Jul 19 '25 15:07 JeelsBoobz

Can you paste the copied text using the usual method of clicking "Paste" in the long press menu ?

Julow avatar Jul 19 '25 15:07 Julow

I don't understand what you mean with this snippet of code. Can you explain in which situation you encounter the bug ?

my screenrecord https://drive.google.com/file/d/120UBP5ar1Htb0XBQbeybl02AwwK9_5UV/view?usp=sharing

JeelsBoobz avatar Jul 19 '25 15:07 JeelsBoobz

Can you paste the copied text using the usual method of clicking "Paste" in the long press menu ?

No issue from copy/paste by system

JeelsBoobz avatar Jul 19 '25 15:07 JeelsBoobz

Thanks for the video! The root cause is not clear to me so more investigation is needed.

The weird thing is that the paste key works the first time you used it.

Julow avatar Jul 19 '25 16:07 Julow

Thanks for the video! The root cause is not clear to me so more investigation is needed.

The weird thing is that the paste key works the first time you used it.

Yes, if you use system first it will be normal, but if you use keyboard directly it will be blank (text can't be pasted using system either)

JeelsBoobz avatar Jul 19 '25 16:07 JeelsBoobz