This forum has been archived. All content is frozen. Please use KDE Discuss instead.

[SOLVED] Spaces not honored in Shortcut

Tags: None
(comma "," separated)
User avatar
Snowhog
Registered Member
Posts
198
Karma
1
OS
Kubuntu Lucid 10.04
KDE 4.4.3

I've created an Input Action in System Settings > Input Actions > Konqueror Gestures

I've assigned the shortcut trigger as Ctrl+Meta+S

The action is:
Shift+K:u:b:u:n:t:u: :Shift+U:s:e:r: :Shift+3:1:5:7:3:3


Note that there are two spaces. The output is supposed to be:
Kubuntu User #15733


But when Ctrl+Meta+S is pressed, it produces:
KubuntuUser#15733


A space is supposed to be created by pressing the space bar, which I've done, so why isn't the space being honored?

Last edited by Snowhog on Fri Oct 29, 2010 4:12 pm, edited 1 time in total.


Administrator
Kubuntu Forums . Net - https://kubuntuforums.net
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Spaces not honored in Shortcut

Mon May 17, 2010 7:57 am
I would recommend filing a bug report at bugs.kde.org, as the space is probably being truncated.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
Snowhog
Registered Member
Posts
198
Karma
1
OS
Will do. Thank you.

Bug 238001


Administrator
Kubuntu Forums . Net - https://kubuntuforums.net
User avatar
Snowhog
Registered Member
Posts
198
Karma
1
OS

Re: Spaces not honored in Shortcut

Sat Jul 24, 2010 5:34 pm
I've solved this on my own. While the instructions indicate that a space
inserted between colons as in : : is supposed to generate a space, it does not,
and why I reported it on bug.kde.org.

Today I decided to simply type the word Space between the colons as in :Space:
to see if that would work. It did.

So my original Input action of:

Shift+K:u:b:u:n:t:u: :Shift+U:s:e:r: :Shift+3:1:5:7:3:3

Which produced:

KubuntuUser#15733

Has been modified to read as:

Shift+K:u:b:u:n:t:u:Space:Shift+U:s:e:r:Space:Shift+3:1:5:7:3:3

which now correctly produces:

Kubuntu User #15733


Administrator
Kubuntu Forums . Net - https://kubuntuforums.net
onety-three
Registered Member
Posts
37
Karma
0
OS

Re: Spaces not honored in Shortcut

Sun Jul 25, 2010 11:50 am
Which documentation are you talking about? I'm not aware of any, and it really should be fixed.
This feature is completely defined by the behaviour of QKeySequence, by the way. But unfortunately that class is not documented very thoroughly regarding such things.
User avatar
Snowhog
Registered Member
Posts
198
Karma
1
OS

Re: Spaces not honored in Shortcut

Mon Jul 26, 2010 4:25 am
No true 'documentation', but in Configure Input Actions settings > Examples > Type 'Hello' there is, which I was using, this:

After pressing Alt+Ctrl+H the input of 'Hello' will be simulated, as if you typed it. This is especially useful if you have call to frequently type a word (for instance, 'unsigned'). Every keypress in the input is separated by a colon ':'. Note that the keypresses literally mean keypresses, so you have to write what you would press on the keyboard. In the table below, the left column shows the input and the right column shows what to type.

"enter" (i.e. new line)..............Enter or Return
a (i.e. small a).....................A
A (i.e. capital a)...................Shift+A
: (colon)............................Shift+;
' ' (space).........................Space


I interpreted the space to be a space (press space bar once) between the colons. Maybe I read to much into the commentary in the example, but what ever. I have it working and that's what matters. :)


Administrator
Kubuntu Forums . Net - https://kubuntuforums.net
onety-three
Registered Member
Posts
37
Karma
0
OS

Re: Spaces not honored in Shortcut

Mon Jul 26, 2010 7:33 am
Ah, thanks, I completely forgot about those examples. In this case though I guess it's more of a misunderstanding than an error in that text :)


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]