Comment 0 for bug 1480659

Revision history for this message
Tasos Sahanidis (tatokis) wrote :

Diodon won't paste into the Steam chat window.
From what I have read, Diodon simulates a Ctrl + V keystroke.

Steam works manually with that keystroke, however when simulated manually using xte
(xte 'keydown Control_L' 'key v' 'keyup Control_L'), the keystroke is not registered, and thus no paste.

After some time, I found out that in order for steam to paste, there needs to be a delay between keystrokes.
From my tests, an optimal value seems to be 50000μS.

So with that, the xte command becomes xte 'keydown Control_L' 'usleep 50000' 'key v' 'usleep 50000' 'keyup Control_L',
and now steam registers the keystroke and pastes.

A possible fix would be an option to allow per-application custom delay values.