<?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>32005</bug_id>
          
          <creation_ts>2009-11-30 20:51:59 -0800</creation_ts>
          <short_desc>Web Inspector: Escape key in the Search Field should be more User Friendly</short_desc>
          <delta_ts>2009-12-01 12:09:00 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Web Inspector (Deprecated)</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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>1</everconfirmed>
          <reporter name="Joseph Pecoraro">joepeck</reporter>
          <assigned_to name="Joseph Pecoraro">joepeck</assigned_to>
          <cc>bweinstein</cc>
    
    <cc>joepeck</cc>
    
    <cc>keishi</cc>
    
    <cc>pfeldman</cc>
    
    <cc>pmuellr</cc>
    
    <cc>rik</cc>
    
    <cc>timothy</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>167494</commentid>
    <comment_count>0</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2009-11-30 20:51:59 -0800</bug_when>
    <thetext>The Escape Key in the Search Field should do the following:

  - When manually focused (via the mouse) Escape should Clear the text and search but remain focused on the textfield.
  - Otherwise (⌘F) Escape should Clear the text and search but change focus to the previously selected element</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>167503</commentid>
    <comment_count>1</comment_count>
      <attachid>44053</attachid>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2009-11-30 22:12:26 -0800</bug_when>
    <thetext>Created attachment 44053
[PATCH] Desired Behavior

previousFocusElement doesn&apos;t have a setter, and since this was the only special case I didn&apos;t think it pertinent to add a setter. I also named the function as descriptively as possible rather then searchOnMouseDown or something like we normally do, again my reasoning being this is a special case and the name is helpful.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>167504</commentid>
    <comment_count>2</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2009-11-30 22:12:55 -0800</bug_when>
    <thetext>style-queue ran check-webkit-style on attachment 44053 without any errors.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>167509</commentid>
    <comment_count>3</comment_count>
      <attachid>44053</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-11-30 22:20:30 -0800</bug_when>
    <thetext>Comment on attachment 44053
[PATCH] Desired Behavior

Do we have any way to write a test for this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>167560</commentid>
    <comment_count>4</comment_count>
      <attachid>44053</attachid>
    <who name="Timothy Hatcher">timothy</who>
    <bug_when>2009-12-01 03:25:48 -0800</bug_when>
    <thetext>Comment on attachment 44053
[PATCH] Desired Behavior

&gt; +    searchField.addEventListener(&quot;mousedown&quot;, this.searchFieldManualFocus.bind(this), false); // when the search field is manually selected
&gt; +WebInspector.searchFieldManualFocus = function(event)
&gt; +{
&gt; +    this.currentFocusElement = event.target;
&gt; +    this._previousFocusElement = event.target;
&gt; +}

This should alredy happen when the focus event fires. You shouldn&apos;t need this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>167616</commentid>
    <comment_count>5</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2009-12-01 08:04:50 -0800</bug_when>
    <thetext>(In reply to comment #4)
&gt; (From update of attachment 44053 [details])
&gt; &gt; +    searchField.addEventListener(&quot;mousedown&quot;, this.searchFieldManualFocus.bind(this), false); // when the search field is manually selected
&gt; &gt; +WebInspector.searchFieldManualFocus = function(event)
&gt; &gt; +{
&gt; &gt; +    this.currentFocusElement = event.target;
&gt; &gt; +    this._previousFocusElement = event.target;
&gt; &gt; +}
&gt; 
&gt; This should alredy happen when the focus event fires. You shouldn&apos;t need this.

My goal was to make it so when you manually click on the search field, pushing Escape would keep the focus on the search field. I didn&apos;t want to create and delete a flag because that is normally dirty. An easy solution is to set both the previous and current to be the searchField.

In this case the searchFieldManualFocus focus event will fire before the other due to the bubbling order. Therefore if I set:

 - just the previous, then when this bubbles out to the main handler then previous will get overwritten with the &quot;old&quot; current.
 - just the current, then the previous does not get changed

My solution was to just set them both, to be sure they had the same value. Should I attack this in a different way?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>167618</commentid>
    <comment_count>6</comment_count>
      <attachid>44053</attachid>
    <who name="Pavel Feldman">pfeldman</who>
    <bug_when>2009-12-01 08:06:04 -0800</bug_when>
    <thetext>Comment on attachment 44053
[PATCH] Desired Behavior

&gt; +        this.performSearch(event);

We need this for cleanup, right?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>167624</commentid>
    <comment_count>7</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2009-12-01 08:13:29 -0800</bug_when>
    <thetext>(In reply to comment #3)
&gt; (From update of attachment 44053 [details])
&gt; Do we have any way to write a test for this?

This is mostly a UI feature. Testing it would involve &quot;fake&quot; events or calling frontend functions in a particular order assuming they were fired. We typically haven&apos;t included tests for these types of inspector features but if desired I could add a test.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>167625</commentid>
    <comment_count>8</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2009-12-01 08:15:14 -0800</bug_when>
    <thetext>(In reply to comment #6)
&gt; (From update of attachment 44053 [details])
&gt; &gt; +        this.performSearch(event);
&gt; 
&gt; We need this for cleanup, right?

Yes. Due to having just set the text to the empty string, AND in such a way the that the inputs incremental search event doesn&apos;t automatically fire, I call performSearch which would clear any existing search.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>167649</commentid>
    <comment_count>9</comment_count>
      <attachid>44053</attachid>
    <who name="Timothy Hatcher">timothy</who>
    <bug_when>2009-12-01 09:18:09 -0800</bug_when>
    <thetext>Comment on attachment 44053
[PATCH] Desired Behavior


&gt; +        this.currentFocusElement = this.previousFocusElement;

Why do you need this? Wont the focus stay on the search field like you want if you removed this line? Then you don&apos;t need the mousedown listener.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>167654</commentid>
    <comment_count>10</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2009-12-01 09:26:26 -0800</bug_when>
    <thetext>(In reply to comment #9)
&gt; (From update of attachment 44053 [details])
&gt; 
&gt; &gt; +        this.currentFocusElement = this.previousFocusElement;
&gt; 
&gt; Why do you need this? Wont the focus stay on the search field like you want if
&gt; you removed this line? Then you don&apos;t need the mousedown listener.

This is for behaviorcase #2, in comment 1. For instance if you had selected a node in the Tree HHierarchy, pushed ⌘F, cancelled with Escape, it would go back to the element you had selected. This is similar to using ⌘F in Safari itself if you start the process with the focus on a text field.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>167689</commentid>
    <comment_count>11</comment_count>
      <attachid>44091</attachid>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2009-12-01 11:40:22 -0800</bug_when>
    <thetext>Created attachment 44091
[PATCH] Desired Behavior

Although I was pretty certain it was working before after a rebuild in behavior #1 pushing Escape made it so the search field had focus but I couldn&apos;t start typing in it! Throwing in a select() made it work as expected.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>167691</commentid>
    <comment_count>12</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2009-12-01 11:41:54 -0800</bug_when>
    <thetext>style-queue ran check-webkit-style on attachment 44091 without any errors.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>167697</commentid>
    <comment_count>13</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2009-12-01 12:09:00 -0800</bug_when>
    <thetext>Landed in http://trac.webkit.org/changeset/51553
r51553 = 02237f7508bc456dd797e280182c49e9a6a587ce</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>44053</attachid>
            <date>2009-11-30 22:12:26 -0800</date>
            <delta_ts>2009-12-01 11:40:22 -0800</delta_ts>
            <desc>[PATCH] Desired Behavior</desc>
            <filename>patch</filename>
            <type>text/plain</type>
            <size>2256</size>
            <attacher name="Joseph Pecoraro">joepeck</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1dlYkNvcmUvQ2hhbmdlTG9nIGIvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXgg
NTQ4Y2NkZC4uYzQ3YzExMyAxMDA2NDQKLS0tIGEvV2ViQ29yZS9DaGFuZ2VMb2cKKysrIGIvV2Vi
Q29yZS9DaGFuZ2VMb2cKQEAgLTEsNSArMSwxNyBAQAogMjAwOS0xMS0zMCAgSm9zZXBoIFBlY29y
YXJvICA8am9lcGVja0B3ZWJraXQub3JnPgogCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAo
T09QUyEpLgorCisgICAgICAgIFdlYiBJbnNwZWN0b3I6IEVzY2FwZSBrZXkgaW4gdGhlIFNlYXJj
aCBGaWVsZCBzaG91bGQgYmUgbW9yZSBVc2VyIEZyaWVuZGx5CisgICAgICAgIGh0dHBzOi8vYnVn
cy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD0zMjAwNQorCisgICAgICAgICogaW5zcGVjdG9y
L2Zyb250LWVuZC9pbnNwZWN0b3IuanM6CisgICAgICAgIChXZWJJbnNwZWN0b3IubG9hZGVkKToK
KyAgICAgICAgKFdlYkluc3BlY3Rvci5zZWFyY2hGaWVsZE1hbnVhbEZvY3VzKToKKyAgICAgICAg
KFdlYkluc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oaXMuY3VycmVudEZvY3VzRWxlbWVudCA9IHRoaXMucHJldmlvdXNGb2N1c0VsZW1l
bnQ7CisgICAgICAgIHJldHVybiBmYWxzZTsKKyAgICB9CisKICAgICBpZiAoIWlzRW50ZXJLZXko
ZXZlbnQpKQogICAgICAgICByZXR1cm4gZmFsc2U7CiAK
</data>
<flag name="review"
          id="25828"
          type_id="1"
          status="+"
          setter="pfeldman"
    />
          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>44091</attachid>
            <date>2009-12-01 11:40:22 -0800</date>
            <delta_ts>2009-12-01 11:53:36 -0800</delta_ts>
            <desc>[PATCH] Desired Behavior</desc>
            <filename>patch</filename>
            <type>text/plain</type>
            <size>2385</size>
            <attacher name="Joseph Pecoraro">joepeck</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1dlYkNvcmUvQ2hhbmdlTG9nIGIvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXgg
YzA0NTZmMi4uOThhMTU4OSAxMDA2NDQKLS0tIGEvV2ViQ29yZS9DaGFuZ2VMb2cKKysrIGIvV2Vi
Q29yZS9DaGFuZ2VMb2cKQEAgLTEsMyArMSwxNSBAQAorMjAwOS0xMi0wMSAgSm9zZXBoIFBlY29y
YXJvICA8am9lcGVja0B3ZWJraXQub3JnPgorCisgICAgICAgIFJldmlld2VkIGJ5IFBhdmVsIEZl
bGRtYW4uCisKKyAgICAgICAgV2ViIEluc3BlY3RvcjogRXNjYXBlIGtleSBpbiB0aGUgU2VhcmNo
IEZpZWxkIHNob3VsZCBiZSBtb3JlIFVzZXIgRnJpZW5kbHkKKyAgICAgICAgaHR0cHM6Ly9idWdz
LndlYmtpdC5vcmcvc2hvd19idWcuY2dpP2lkPTMyMDA1CisKKyAgICAgICAgKiBpbnNwZWN0b3Iv
ZnJvbnQtZW5kL2luc3BlY3Rvci5qczoKKyAgICAgICAgKFdlYkluc3BlY3Rvci5sb2FkZWQpOiBh
ZGQgZ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J1ZTsKKyAgICAgICAgZXZlbnQudGFyZ2V0LnZhbHVlID0gIiI7CisKKyAgICAgICAgdGhpcy5w
ZXJmb3JtU2VhcmNoKGV2ZW50KTsKKyAgICAgICAgdGhpcy5jdXJyZW50Rm9jdXNFbGVtZW50ID0g
dGhpcy5wcmV2aW91c0ZvY3VzRWxlbWVudDsKKyAgICAgICAgaWYgKHRoaXMuY3VycmVudEZvY3Vz
RWxlbWVudCA9PT0gZXZlbnQudGFyZ2V0KQorICAgICAgICAgICAgdGhpcy5jdXJyZW50Rm9jdXNF
bGVtZW50LnNlbGVjdCgpOworCisgICAgICAgIHJldHVybiBmYWxzZTsKKyAgICB9CisKICAgICBp
ZiAoIWlzRW50ZXJLZXkoZXZlbnQpKQogICAgICAgICByZXR1cm4gZmFsc2U7CiAK
</data>
<flag name="review"
          id="25866"
          type_id="1"
          status="+"
          setter="timothy"
    />
          </attachment>
      

    </bug>

</bugzilla>