<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>15052</bug_id>
          
          <creation_ts>2007-08-22 14:54:33 -0700</creation_ts>
          <short_desc>GTK platform doesn&apos;t send keypress events</short_desc>
          <delta_ts>2007-08-22 17:25:47 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Forms</component>
          <version>523.x (Safari 3)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Jasper Bryant-Greene">m</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1685</commentid>
    <comment_count>0</comment_count>
    <who name="Jasper Bryant-Greene">m</who>
    <bug_when>2007-08-22 14:54:33 -0700</bug_when>
    <thetext>In WebCore/html/HTMLInputElement.cpp, code exists to submit the form when a keypressEvent for the Enter key is received on a text field within the form.

However, this doesn&apos;t work on GTK. It appears that the field never receives a keypressEvent (but it does receive a keydownEvent and keyupEvent).

Changing the conditional on line 1159 to check for keyupEvent rather than keypressEvent works, however I have not yet ascertained why keypressEvent does not happen on GTK.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1682</commentid>
    <comment_count>1</comment_count>
    <who name="Jasper Bryant-Greene">m</who>
    <bug_when>2007-08-22 15:07:15 -0700</bug_when>
    <thetext>I&apos;ve updated the summary - this is a more general problem.

GTK&apos;s PlatformKeyboardEvent hard-codes autoRepeat to false (KeyEventGdk.cpp:483). This means keypress events never happen. Unfortunately I can&apos;t find a way to get auto-repeat events from GTK for a keypress, but if I can find something I&apos;ll submit a patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1673</commentid>
    <comment_count>2</comment_count>
    <who name="Jasper Bryant-Greene">m</who>
    <bug_when>2007-08-22 17:25:47 -0700</bug_when>
    <thetext>Sorry, got the cause of this bug completely wrong. Apologies for the noise - I will submit a new bug with the actual cause to avoid confusing the issue.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>