<?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>18993</bug_id>
          
          <creation_ts>2008-05-11 01:34:57 -0700</creation_ts>
          <short_desc>Update of buttons in toolbar lags behind</short_desc>
          <delta_ts>2008-06-23 14:17:37 -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>WebKit Website</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>P3</priority>
          <bug_severity>Enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Aaron Digulla">digulla</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>webkit</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>80110</commentid>
    <comment_count>0</comment_count>
    <who name="Aaron Digulla">digulla</who>
    <bug_when>2008-05-11 01:34:57 -0700</bug_when>
    <thetext>Select a piece of text and make it bold.

Now use the cursor keys to move in and out of the bold text. You&apos;ll see that the button in the toolbar lags behind by one keystroke.

The source of the problem is that the cursor is in a new position when the key is released. To fix this, add an event listener for &quot;keyup&quot; in FancyToolbar.prototype.show() (just copy the line with &quot;keypress&quot;). Don&apos;t forget to remove the event listener in FancyToolbar.prototype.hidden().

Also, the call to loadFancyToolbars() in index.html is no longer necessary.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80111</commentid>
    <comment_count>1</comment_count>
      <attachid>21065</attachid>
    <who name="Aaron Digulla">digulla</who>
    <bug_when>2008-05-11 01:36:09 -0700</bug_when>
    <thetext>Created attachment 21065
Patch for the two issues</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83241</commentid>
    <comment_count>2</comment_count>
      <attachid>21065</attachid>
    <who name="Robert Blaut">webkit</who>
    <bug_when>2008-06-13 12:33:02 -0700</bug_when>
    <thetext>Comment on attachment 21065
Patch for the two issues

I suppose you have asked for review ;)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83245</commentid>
    <comment_count>3</comment_count>
      <attachid>21065</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2008-06-13 14:02:01 -0700</bug_when>
    <thetext>Comment on attachment 21065
Patch for the two issues

r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84079</commentid>
    <comment_count>4</comment_count>
    <who name="Aaron Digulla">digulla</who>
    <bug_when>2008-06-22 13:32:26 -0700</bug_when>
    <thetext>Just apply the code to the project. It&apos;s just three lines that are changed!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84101</commentid>
    <comment_count>5</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2008-06-22 18:27:19 -0700</bug_when>
    <thetext>Landed in r34736.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84192</commentid>
    <comment_count>6</comment_count>
    <who name="Aaron Digulla">digulla</who>
    <bug_when>2008-06-23 14:17:37 -0700</bug_when>
    <thetext>Verified in r34746.

Should I mark this bug as verified or who does that?</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>21065</attachid>
            <date>2008-05-11 01:36:09 -0700</date>
            <delta_ts>2008-06-13 14:02:01 -0700</delta_ts>
            <desc>Patch for the two issues</desc>
            <filename>editingToolbar-lag.patch</filename>
            <type>text/plain</type>
            <size>1892</size>
            <attacher name="Aaron Digulla">digulla</attacher>
            
              <data encoding="base64">SW5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pbmcgY29weSkKQEAgLTY1LDcgKzY1LDcgQEAgaWZyYW1lLmVkaXRh
YmxlIHsKIDxsaW5rIHJlbD0ic3R5bGVzaGVldCIgdHlwZT0idGV4dC9jc3MiIGhyZWY9IkZhbmN5
VG9vbGJhci5jc3MiPgogPHNjcmlwdCBzcmM9IkZhbmN5VG9vbGJhci5qcyI+PC9zY3JpcHQ+CiA8
L2hlYWQ+Ci08Ym9keSBvbmxvYWQ9ImxvYWRGYW5jeVRvb2xiYXJzKCkiPgorPGJvZHk+CiA8aWZy
YW1lIGNsYXNzPSJlZGl0YWJsZSIgc3JjPSJjb250ZW50Lmh0bWwiPjwvaWZyYW1lPgogPC9ib2R5
PgogPC9odG1sPgo=
</data>
<flag name="review"
          id="9514"
          type_id="1"
          status="+"
          setter="darin"
    />
          </attachment>
      

    </bug>

</bugzilla>