Bug 84434 - keyboard input: cannot simulate input of a large word
Summary: keyboard input: cannot simulate input of a large word
Status: RESOLVED FIXED
Alias: None
Product: khotkeys
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: HI normal
Target Milestone: ---
Assignee: Lubos Lunak
URL:
Keywords:
: 107330 110806 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-07-03 23:21 UTC by Michael Monnerie
Modified: 2005-09-29 20:25 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Monnerie 2004-07-03 23:21:14 UTC
Version:           khotkeys -v
[shows] Qt: 3.3.2
KDE: 3.2.2
KHotKeys: 2.0 (using KDE KDE 3.2.2)
Installed from:    SuSE RPMs
Compiler:          SUSE RPM SUSE RPM
OS:                Linux

You cannot simulate simple input from the keyboard. Example, I want to have the text "thisshouldbereadable" being typed when I press a certain shortcut.

In "khotkeys", I enter:
T:h:i:s:S:h:o:u:l:d:B:e:R:e:a:d:a:b:l:e

And when I press the shortcut, I get:
thhissoullddbbeeeraa

Not exactly what I wanted... Any ideas?

In case of questions:
m.zieger@zmi.at, +43 660 4156531 (Austria)
Comment 1 Michael Rolf 2004-07-05 12:10:03 UTC
I have the same problems under SuSE 9.1 (KDE 3.2.1) and Gentoo (KDE 3.2.3) here and I haven't found any workaround for it.
Why does KHotKeys groups same characters together?

Add the moment KHotKeys is only useful for 1:1 replacements, which normally (except for the gestures) is already included in the kde applications itself.

Michael
Comment 2 Gilles Schintgen 2004-07-15 11:24:03 UTC
I just wanted to report my problems with the tab character.
A:Tab:B gives me "a       b" whereas A:Tab:Tab:B results in "ab". This is reproducible for me in KDE 3.2.2. Also A:Tab:B:Tab:C doesn't work as intended (abc). I don't know if I should report this as a separate bug.
Comment 3 Lubos Lunak 2004-08-06 18:45:54 UTC
Qt bug.
Comment 4 W. H. 2004-08-24 23:48:05 UTC
This problem seems to exist in BOTH KDE 3.2 and the newly released KDE 3.3.  KHotKeys-   Keyboard Shortcut->Keyboard Input (simple)

The hot key defined in the example HELLO works seemingly fine, but upon changing the keyboard input settings 

from Shift+H:E:L:L:O to Shift+H:E:L:L:O:H:E:N:S,

the result is grouped, with ANY repeated letters (in this case H and E) grouped together at the first letter's occurrence.

The result is: HHeellons



Shift+H:E:L:L:O:H:E:L:L produces

HHeellllo,

with the 4 l's grouped together, the 2 H's, matching the Shift+H in case, and the 2 e's.


and Shift+H:E:L:L:O:A:B:C:D:E:F:G:H:I:J:K:L:M:N:O:P:Q produces

HHeelllooabcdfgijkmnpq

(notice 3 l's and the missing alphabet letters, now rearranged so they are grouped with each letter's respective first occurrence.)

Thank you for this sorely needed hotkey program!!!! 
This problem seems to exist in BOTH KDE 3.2 and the newly released KDE 3.3.  KHotKeys-   Keyboard Shortcut->Keyboard Input (simple)

The hot key defined in the example HELLO works seemingly fine, but upon changing the keyboard input settings from Shift+H:E:L:L:O to Shift+H:E:L:L:O:H:E:N:S, the result is grouped, with ANY repeated letters (in this case H and E) grouped together at the first letter's occurrence.

The result is: HHeellons


Shift+H:E:L:L:O:H:E:L:L produces

HHeellllo,

with the 4 l's grouped together, the 2 H's, matching the Shift+H in case, and the 2 e's.

and Shift+H:E:L:L:O:A:B:C:D:E:F:G:H:I:J:K:L:M:N:O:P:Q produces

HHeelllooabcdfgijkmnpq

(notice 3 l's and the missing alphabet letters, now rearranged so they are grouped with each letter's respective first occurrence.)

Thank you for this sorely needed hotkey program!!!! 
Comment 5 W. H. 2004-08-25 04:30:19 UTC
sorry!  didn't intend to double the size of my post by replicating the entire body. :-( if u can edit it please do so.
Comment 6 Lubos Lunak 2004-10-12 11:54:02 UTC
CVS commit by lunakl: 

Workaround for Qt's broken autorepeat compression.
CCMAIL: 84434-done@bugs.kde.org


  M +3 -0      input.cpp   1.4


--- kdebase/khotkeys/shared/input.cpp  #1.3:1.4
@@ -227,4 +227,7 @@ bool Kbd::send_macro_key( unsigned int k
     ret = ret && XSendEvent( qt_xdisplay(), window_P, True, KeyReleaseMask, ( XEvent* )&ev );
 #endif
+    // Qt's autorepeat compression is broken and can create "aab" from "aba"
+    // XSync() should create delay longer than Qt's max autorepeat interval
+    XSync( qt_xdisplay(), False );
     return ret;
     }


Comment 7 David Rubio 2005-01-28 00:13:49 UTC
This workaround doesn't work for me.
Comment 8 Carsten Nikiel 2005-04-22 13:33:30 UTC
This is still present in KDE 3.4.0 which I am running.
Interestingly it seems to work for KWrite but if I use the same long words in KMail it fails.
Maybe this is a sort of timing issue?
Comment 9 Lubos Lunak 2005-04-22 13:51:54 UTC
Tell your Qt packager to include qt-copy patch #0056.
Comment 10 Lubos Lunak 2005-08-15 12:51:38 UTC
*** Bug 110806 has been marked as a duplicate of this bug. ***
Comment 11 Lubos Lunak 2005-09-29 20:25:21 UTC
*** Bug 107330 has been marked as a duplicate of this bug. ***