Bug 143267

Summary: Web Inspector: spacebar should pause/resume timeline recording when timelines are open
Product: WebKit Reporter: Brian Burg <burg>
Component: Web InspectorAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, graouts, joepeck, jonowells, mattbaker, nvasilyev, timothy, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch
none
Patch none

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.