<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [GTK] Get rid of GetEditorCommandsForKeyEvent sync message"
   href="https://bugs.webkit.org/show_bug.cgi?id=145598#c7">Comment # 7</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [GTK] Get rid of GetEditorCommandsForKeyEvent sync message"
   href="https://bugs.webkit.org/show_bug.cgi?id=145598">bug 145598</a>
              from <span class="vcard"><a class="email" href="mailto:cgarcia&#64;igalia.com" title="Carlos Garcia Campos &lt;cgarcia&#64;igalia.com&gt;"> <span class="fn">Carlos Garcia Campos</span></a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=145598#c6">comment #6</a>)
<span class="quote">&gt; Comment on <span class=""><a href="attachment.cgi?id=254159&amp;action=diff" name="attach_254159" title="Patch">attachment 254159</a> <a href="attachment.cgi?id=254159&amp;action=edit" title="Patch">[details]</a></span>
&gt; Patch
&gt; 
&gt; View in context:
&gt; <a href="https://bugs.webkit.org/attachment.cgi?id=254159&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=254159&amp;action=review</a>
&gt; 
&gt; &gt;&gt;&gt; Source/WebCore/dom/KeyboardEvent.cpp:233
&gt; &gt;&gt;&gt; +#endif
&gt; &gt;&gt; 
&gt; &gt;&gt; Why not use the m_handledByInputMethod boolean, like it's used for the Cocoa platform?
&gt; &gt; 
&gt; &gt; Because we don't need to duplicate that, this is just a convenient method, to avoid having to get the platform event, check if it's null, and then get the boolean.
&gt; 
&gt; I don't think using m_handledByInputMethod the same way it's used for
&gt; PLATFORM(COCOA) &amp;&amp; USE(APPKIT) is duplicating.</span >

I didn't mean duplicating code, but duplicating the value in both objects.

<span class="quote">&gt; I do think adding a new
&gt; GTK-specific method that queries some state that a KeyboardEvent constructor
&gt; could already determine is duplicating.
&gt; 
&gt; But given that this is a Web-exposed class, any platform-specific code is
&gt; regrettable.</span >

I can avoid that entirely and use the platform keyboard event in the callers, as I said this was just a convenient method.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>