[LDTP-Dev] [Bug 581254] New: generatekeyevent('<') causes an error

LDTP (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Sun May 3 21:49:29 PDT 2009


If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=581254

  LDTP | ldtp | Ver: unspecified
           Summary: generatekeyevent('<') causes an error
           Product: LDTP
           Version: unspecified
          Platform: Other
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: ldtp
        AssignedTo: ldtp-maint at gnome.bugs
        ReportedBy: jandrews271 at gmail.com
         QAContact: ldtp-dev at lists.freedesktop.org
     GNOME version: Unspecified
   GNOME milestone: Unspecified


I'm using the python bindings of ldtp, and ldtp.generatekeyevent('<') generates
an error: ldtplib.ldtplibutils.LdtpExecutionError: u'Invalid Key'. This may be
intended behavior since there's no obvious way to identify '<', but still raise
an error in the case of an incomplete tag, but if so, the documentation should
be updated at http://ldtp.freedesktop.org/user-doc/generatekeyevent.html.

ldtp.generatekeyevent('<<>') works (looking through the source code gave me the
idea of trying it), but isn't mentioned anywhere in the documentation.  

I looked at the code here:
http://cgit.freedesktop.org/ldtp/ldtp/tree/src/device.c, and possibly
{"lessthan", 59} (or something similar) could be added to
NonPrint_Key_Synth_Vals[] on line 164, though since it's not technically a non
printing key, simply documenting the use of "<<>" might be better.

For what it's worth, my own preference would be to rename NonPrint_Key_Synth to
something like Escape_Key_Synth and add "lessthan".  I'd submit a patch if I
had any idea how to use a cvs system.


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=581254.


More information about the LDTP-dev mailing list