Bug 143267 - Web Inspector: spacebar should pause/resume timeline recording when timelines are open
Summary: Web Inspector: spacebar should pause/resume timeline recording when timelines...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2015-03-31 10:07 PDT by Brian Burg
Modified: 2015-07-07 22:25 PDT (History)
8 users (show)

See Also:


Attachments
Patch (3.90 KB, patch)
2015-07-07 12:25 PDT, Devin Rousso
no flags Details | Formatted Diff | Diff
Patch (6.08 KB, patch)
2015-07-07 18:59 PDT, Devin Rousso
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Brian Burg 2015-03-31 10:07:43 PDT
.. and focus isn't somewhere else, like a search field.
Comment 1 Radar WebKit Bug Importer 2015-03-31 10:08:22 PDT
<rdar://problem/20365499>
Comment 2 Devin Rousso 2015-07-07 12:25:50 PDT
Created attachment 256312 [details]
Patch
Comment 3 Timothy Hatcher 2015-07-07 13:14:05 PDT
Comment on attachment 256312 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=256312&action=review

> Source/WebInspectorUI/UserInterface/Views/TimelineTabContentView.js:37
> +    this._toggleRecordingShortcut = new WebInspector.KeyboardShortcut(null, WebInspector.KeyboardShortcut.Key.Space, this._toggleRecordingOnSpacebar.bind(this));
> +    this._toggleRecordingShortcut.implicitlyPreventsDefault = false;
> +
> +    this._toggleNewRecordingShortcut = new WebInspector.KeyboardShortcut(WebInspector.KeyboardShortcut.Modifier.Shift, WebInspector.KeyboardShortcut.Key.Space, this._toggleNewRecordingOnSpacebar.bind(this));
> +    this._toggleNewRecordingShortcut.implicitlyPreventsDefault = false;

We should mention the shortcuts in a tooltip on the Record button in the sidebar. It might be easier to put this code in TimelineSidebarPanel, since it also toggles recording and you would have access to the shortcuts to use displayName for the tooltip.
Comment 4 Devin Rousso 2015-07-07 18:59:04 PDT
Created attachment 256344 [details]
Patch
Comment 5 WebKit Commit Bot 2015-07-07 22:25:40 PDT
Comment on attachment 256344 [details]
Patch

Clearing flags on attachment: 256344

Committed r186489: <http://trac.webkit.org/changeset/186489>
Comment 6 WebKit Commit Bot 2015-07-07 22:25:44 PDT
All reviewed patches have been landed.  Closing bug.