RESOLVED FIXED 176433
Web Inspector: ⌘E and ⌘G do not work in main content area when quick console drawer is open
https://bugs.webkit.org/show_bug.cgi?id=176433
Summary Web Inspector: ⌘E and ⌘G do not work in main content area when quick console ...
Joseph Pecoraro
Reported 2017-09-05 16:57:49 PDT
⌘E and ⌘G do not work in main content area when quick console drawer is open Steps to reproduce: 1. Inspect webkit.org 2. Show the main resource's content in the Resources tab 3. Expand the quick console 4. Double click to select "stylesheet" in the main resource content area 5. ⌘E and ⌘G => Expected search forward, nothing happened Notes: - Both the Main ContentBrowser and the QuickConsole's ContentBrowser have a FindBanner - Both FindBanners have "enabled" their ⌘E/⌘G handling - The QuickConsole's happens first - KeyboardShortcut's global handler runs only 1 handler and bails
Attachments
[PATCH] Proposed Fix (13.08 KB, patch)
2017-09-05 17:45 PDT, Joseph Pecoraro
bburg: review+
bburg: commit-queue-
[PATCH] For Landing (12.99 KB, patch)
2017-09-06 12:05 PDT, Joseph Pecoraro
no flags
Joseph Pecoraro
Comment 1 2017-09-05 16:59:40 PDT
Possible solutions: 1. KeyboardShortcuts should specify if they have handled / if they stop propagation 2. Move away from multiple KeyboardShortcuts and behave like ⌘K where it is a global entry point and the current / active content view attempts to handle the operation. I like (2) better, since it avoid any conflict. The user has a keyboard shortcut, and they expect it to apply to the active area.
Joseph Pecoraro
Comment 2 2017-09-05 17:45:56 PDT
Created attachment 319963 [details] [PATCH] Proposed Fix
Blaze Burg
Comment 3 2017-09-06 08:55:12 PDT
This is a great example of something that is not possible to test given our current test harness setup.
Blaze Burg
Comment 4 2017-09-06 09:05:38 PDT
Comment on attachment 319963 [details] [PATCH] Proposed Fix View in context: https://bugs.webkit.org/attachment.cgi?id=319963&action=review r=me, Thank you Joe! > Source/WebInspectorUI/ChangeLog:45 > + are ContentBrowsers Nit: missing end of sentence > Source/WebInspectorUI/UserInterface/Base/Main.js:291 > + // FIXME: FindBanner search queries should be shared among search fields and be common with the system. Nit: you are looking for bugs 151310 and 113588. > Source/WebInspectorUI/UserInterface/Views/ContentView.js:452 > + let selection = window.getSelection(); I guess this is better than nothing. We need to do a better job overriding this in more ContentView subclasses. > Source/WebInspectorUI/UserInterface/Views/FindBanner.js:-227 > - { I didn't realize we were doing this, its kinda gross. If we really were going to do this in a transparent way that each content view handles it by itself, then we'd need some notion of a first responder and responder chain. I think the solution in this patch is fine, though.
Joseph Pecoraro
Comment 5 2017-09-06 12:05:03 PDT
Created attachment 320046 [details] [PATCH] For Landing
WebKit Commit Bot
Comment 6 2017-09-06 12:46:42 PDT
Comment on attachment 320046 [details] [PATCH] For Landing Clearing flags on attachment: 320046 Committed r221691: <http://trac.webkit.org/changeset/221691>
Radar WebKit Bug Importer
Comment 7 2017-09-27 12:35:32 PDT
Note You need to log in before you can comment on or make changes to this bug.