<?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>158579</bug_id>
          
          <creation_ts>2016-06-09 13:52:04 -0700</creation_ts>
          <short_desc>Web Inspector: Support Command-P for quick open</short_desc>
          <delta_ts>2016-06-09 19:46:53 -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>Web Inspector</component>
          <version>WebKit 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>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Timothy Hatcher">timothy</reporter>
          <assigned_to name="Nikita Vasilyev">nvasilyev</assigned_to>
          <cc>bburg</cc>
    
    <cc>commit-queue</cc>
    
    <cc>joepeck</cc>
    
    <cc>mattbaker</cc>
    
    <cc>nvasilyev</cc>
    
    <cc>timothy</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1200961</commentid>
    <comment_count>0</comment_count>
    <who name="Timothy Hatcher">timothy</who>
    <bug_when>2016-06-09 13:52:04 -0700</bug_when>
    <thetext>To match Chrome Dev Tools, we should support Command-P. This is a stupid shortcut, since Command-P is normally Print. But I have seen some users on Twitter not know we supported Quick Open because the shortcut was different.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1200963</commentid>
    <comment_count>1</comment_count>
    <who name="Nikita Vasilyev">nvasilyev</who>
    <bug_when>2016-06-09 13:54:42 -0700</bug_when>
    <thetext>Command-P also matches Sublime Text and Atom, which
is probably why Chrome DevTools chose to use it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1200964</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2016-06-09 13:57:02 -0700</bug_when>
    <thetext>&lt;rdar://problem/26726751&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1200965</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2016-06-09 13:57:51 -0700</bug_when>
    <thetext>&lt;rdar://problem/26726702&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1201009</commentid>
    <comment_count>4</comment_count>
      <attachid>280957</attachid>
    <who name="Nikita Vasilyev">nvasilyev</who>
    <bug_when>2016-06-09 15:29:04 -0700</bug_when>
    <thetext>Created attachment 280957
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1201010</commentid>
    <comment_count>5</comment_count>
    <who name="Nikita Vasilyev">nvasilyev</who>
    <bug_when>2016-06-09 15:32:45 -0700</bug_when>
    <thetext>View in context: https://bugs.webkit.org/attachment.cgi?id=280957&amp;action=review

&gt; Source/WebInspectorUI/UserInterface/Base/Main.js:261
&gt;      this.openResourceKeyboardShortcut = new WebInspector.KeyboardShortcut(WebInspector.KeyboardShortcut.Modifier.Command | WebInspector.KeyboardShortcut.Modifier.Shift, &quot;O&quot;, this._showOpenResourceDialog.bind(this));

This property is never used, not even in tests. Why do we use it? Same goes for many other WebInspector._*Shortcut properties.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1201026</commentid>
    <comment_count>6</comment_count>
      <attachid>280957</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2016-06-09 15:54:22 -0700</bug_when>
    <thetext>Comment on attachment 280957
Patch

Clearing flags on attachment: 280957

Committed r201891: &lt;http://trac.webkit.org/changeset/201891&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1201027</commentid>
    <comment_count>7</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2016-06-09 15:54:25 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1201095</commentid>
    <comment_count>8</comment_count>
      <attachid>280957</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2016-06-09 19:33:49 -0700</bug_when>
    <thetext>Comment on attachment 280957
Patch

Isn’t command-P usually Print?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1201103</commentid>
    <comment_count>9</comment_count>
    <who name="Blaze Burg">bburg</who>
    <bug_when>2016-06-09 19:46:53 -0700</bug_when>
    <thetext>(In reply to comment #8)
&gt; Comment on attachment 280957 [details]
&gt; Patch
&gt; 
&gt; Isn’t command-P usually Print?

That is often the case, but not always. Previously it was not bound to anything for the Web Inspector window. Xcode and Instruments do not bind it to anything. I don&apos;t think there is anything to print in the inspector window itself.

I don&apos;t like to use such a prime shortcut that conflicts with Print, but our hands are a bit tied since we don&apos;t have our own menu bar / key equivalents that can be targeted by Keyboard pref pane&apos;s App Shortcuts. So we have to do what the user is going to expect, which due to Sublime Text&apos;s precedent, is command palette or quick open.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>280957</attachid>
            <date>2016-06-09 15:29:04 -0700</date>
            <delta_ts>2016-06-09 15:54:22 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>patch.txt</filename>
            <type>text/plain</type>
            <size>1999</size>
            <attacher name="Nikita Vasilyev">nvasilyev</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1NvdXJjZS9XZWJJbnNwZWN0b3JVSS9DaGFuZ2VMb2cgYi9Tb3VyY2UvV2Vi
SW5zcGVjdG9yVUkvQ2hhbmdlTG9nC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