Bug 424698

Summary: Remote input text field can be made to contain characters, which then can't be cleared.
Product: [Applications] kdeconnect Reporter: Subin <mail>
Component: commonAssignee: Albert Vaca Cintora <albertvaka>
Status: CONFIRMED ---    
Severity: normal CC: cwo.kde, kde
Priority: NOR    
Version First Reported In: 22.04.3   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: The inputbox getting filled up

Description Subin 2020-07-26 23:23:08 UTC
Created attachment 130423 [details]
The inputbox getting filled up

SUMMARY


STEPS TO REPRODUCE
1. Switch to KDE Connect keyboard on an textfield in Android
2. Type on the designated input box in KDEConnect indicator
3. Can't select all text with CTRL + A and clear the box. Also backspace key doesn't work at times

OBSERVED RESULT
Can't clear the input field. The inputfield gets filled up after continuous usage of the keyboard. Like if I send a message, the input in android clears, but the text on my desktop inputfield remains.


EXPECTED RESULT
I should be able to do a CTRL + A and empty the field, or use backspace key.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Plasma 5.18.5
(available in About System)
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.70.0
Qt Version: 5.14.2

ADDITIONAL INFORMATION
Comment 1 cwo 2024-08-04 18:42:12 UTC
Thank you for the bug report! Is this still the case for you?

I've tried this in several circumstances (computer to computer, computer to phone, in both the 5 and 6 series of KF/Qt). The textfield accepts the keys and sends the to the device, but it does not display the characters itself and so does not get filles. I assume this was changed at some point, though I couldn't find anything with a quick glance at the commit history.

If you still experience the box filling up, please add more details about the specific circumstances to this bug report.
Comment 2 cwo 2024-08-05 22:45:59 UTC
Answering myself, I've found ways to get things inside the text field, and can confirm that once they're there it's not possible to clear the field by any apparent means (not even selecting and right-clicking to "cut" works).

Two different reproduction steps that work for me:

(usual setup for getting android to accept remote keyboard input from KDE Connect)

- Switch to a keyboard layout with dead keys. Attempt to send the combination character of ` and a (i.e. à). The character does not get sent, but appears in the text field
- Have middle mouse button pastes selection/primary enabled. Select some text, then paste it into the text field by pressing the middle mouse button. The text does not get sent (like it does with Ctrl+V pasting); instead the text appears in the text field. 

Marking as confirmed and setting the title to something more descriptive.