DescriptionBetter fix for Lion dictionary popover cmd-W bug.
This reverts http://crrev.com/117681 and http://crrev.com/104931 and instead uses new 10.7 notifications to change the shortcuts on Close Tab and Close Window items, so that cmd-W does a "Close Window" when the dictionary is open.
The above is also how Safari appears to solve this issue, as can be seen by going to the File menu when the dictionary popover is up.
BUG=104931, 110306, 109061
TEST=1. Open a tab and double 3-finger tap on a word to bring up the
dictionary popup. Hit cmd-W. The popup should close but the tab
should stay open. Hit cmd-W again. The tab should close.
2. Try cmd-shift-W with > 1 tab open. The window should close.
3. Open a window that doesn't have tabs (e.g. Chrome -> About
Chrome). File -> Close Tab should be disabled.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=118131
Patch Set 1 #
Total comments: 2
Patch Set 2 : '' #Messages
Total messages: 6 (0 generated)
|