After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 501286 - strange behavior with rawinput.pressKey()
strange behavior with rawinput.pressKey()
Status: RESOLVED NOTABUG
Product: dogtail
Classification: Deprecated
Component: Framework
0.6.1
Other All
: Normal normal
: ---
Assigned To: Dogtail Maintainers
Dogtail Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-12-03 16:26 UTC by Alexander Todorov
Modified: 2007-12-04 13:06 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Alexander Todorov 2007-12-03 16:26:07 UTC
Please describe the problem:
Trying to automate a Xen HVM install I use Dogtail's rawinput module.
After clicking in the middle of the VNC console (to gain focus) Dogtail types the boot command line. There is a strange behavior on ia64 where pressKey(':') results in ';' character on the VNC console, not ':'.


Steps to reproduce:
1. Use virt-install to start a Xen HVM installation
2. start python
3. use rawinput.pressKey(':') which sould generate a key press event at the VNC console
4. instead of colon ':' there appears a semi-colen ';'


Actual results:


Expected results:


Does this happen every time?
ia64/yes

Other information:
I will test the same setup on x86 to see if the bug is not coming from the VNC stuff on ia64.
Comment 1 Alexander Todorov 2007-12-03 16:30:57 UTC
I've tested on x86_64 and there seems to be the same error. ':' -> ';'
Comment 2 Michal Babej 2007-12-03 17:53:36 UTC
I've experienced the same bug before, bug i'm not so sure it's dogtail's fault. 

When i deliberately move the focus to the terminal window and let dogtail type in the terminal, it writes the expected characters.
Comment 3 Zack Cerza 2007-12-03 18:24:26 UTC
I'm pretty certain this can't be dogtail's bug, since dogtail just uses GTK and AT-SPI methods to do the work. For example, in the pyatspi branch (which will be merged to trunk soon), in this case the following is happening:

keySym = gtk.gdk.unicode_to_keyval(ord(':'))
pyatspi.Registry.generateKeyboardEvent(keySym, None, pyatspi.KEY_SYM)

Comment 4 Alexander Todorov 2007-12-04 10:39:49 UTC
So it seems that this is a bug int the target application handling the AT-SPI event? I will make some more tests with different releases, versions, etc.
Then file against the VNC application. 

Anyway it's good to have it documented here as well.
Comment 5 Alexander Todorov 2007-12-04 13:06:23 UTC
Filed as a Fedora bug as the virt-viewer is part of the Xen suite.
https://bugzilla.redhat.com/show_bug.cgi?id=410291

Still not sure if the bug is in the viewer or the underlying GTK/VNC widget.