Bug 67711 - Web Inspector: [REGRESSION] Clear console shortcut Ctrl + L broken
Summary: Web Inspector: [REGRESSION] Clear console shortcut Ctrl + L broken
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Alexander Pavlov (apavlov)
URL:
Keywords:
: 68907 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-09-07 08:44 PDT by Alexander Pavlov (apavlov)
Modified: 2011-09-27 09:39 PDT (History)
11 users (show)

See Also:


Attachments
[PATCH] Suggested fix (2.57 KB, patch)
2011-09-07 09:10 PDT, Alexander Pavlov (apavlov)
yurys: review-
Details | Formatted Diff | Diff
[PATCH] Comments addressed (3.15 KB, patch)
2011-09-08 02:10 PDT, Alexander Pavlov (apavlov)
yurys: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Pavlov (apavlov) 2011-09-07 08:44:41 PDT
This was regressed in r93769.

Patch to follow
Comment 1 Alexander Pavlov (apavlov) 2011-09-07 09:08:56 PDT
Upstreaming http://code.google.com/p/chromium/issues/detail?id=95495
Comment 2 Alexander Pavlov (apavlov) 2011-09-07 09:10:00 PDT
Created attachment 106590 [details]
[PATCH] Suggested fix
Comment 3 Yury Semikhatsky 2011-09-07 23:44:27 PDT
Comment on attachment 106590 [details]
[PATCH] Suggested fix

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

> Source/WebCore/inspector/front-end/ConsoleView.js:495
>          this._shortcuts[shortcutK.key].isMacOnly = true;

I'd suggest you get rid of the isMacOnly flag and set this handler only if current platform is Mac, this way you'll be able to share the handler.
Comment 4 Alexander Pavlov (apavlov) 2011-09-07 23:59:21 PDT
(In reply to comment #3)
> (From update of attachment 106590 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=106590&action=review
> 
> > Source/WebCore/inspector/front-end/ConsoleView.js:495
> >          this._shortcuts[shortcutK.key].isMacOnly = true;
> 
> I'd suggest you get rid of the isMacOnly flag and set this handler only if current platform is Mac, this way you'll be able to share the handler.

Does it make sense to have the isMacOnly flag at all? Can't believe it's the only instance of its usage...
Comment 5 Alexander Pavlov (apavlov) 2011-09-08 02:10:51 PDT
Created attachment 106712 [details]
[PATCH] Comments addressed
Comment 6 Alexander Pavlov (apavlov) 2011-09-08 06:57:42 PDT
Committed r94758: <http://trac.webkit.org/changeset/94758>
Comment 7 Pavel Feldman 2011-09-27 09:39:50 PDT
*** Bug 68907 has been marked as a duplicate of this bug. ***