Changeset 55908 in webkit
- Timestamp:
- Mar 12, 2010 9:03:50 AM (14 years ago)
- Location:
- trunk/WebKit/chromium
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKit/chromium/ChangeLog
r55906 r55908 1 2010-03-12 Nicolas Weber <thakis@chromium.org> 2 3 Reviewed by David Levin. 4 5 [Chromium] Cmd-clicking submit buttons should submit in new tab 6 https://bugs.webkit.org/show_bug.cgi?id=36023 7 8 Take modifiers into account when clicking form buttons. E.g. 9 cmd-clicking a submit button will submit in a new background tab, 10 cmd-shift-clicking in a new foreground tab, shift-clicking in a new 11 window. (On windows/linux, it's ctrl instead of cmd.) 12 13 * src/FrameLoaderClientImpl.cpp: 14 (WebKit::FrameLoaderClientImpl::actionSpecifiesNavigationPolicy): 15 1 16 2010-03-12 Kavita Kanetkar <kkanetkar@chromium.org> 2 17 -
trunk/WebKit/chromium/src/FrameLoaderClientImpl.cpp
r55625 r55908 1478 1478 WebNavigationPolicy* policy) 1479 1479 { 1480 if ((action.type() != NavigationTypeLinkClicked) || !action.event()->isMouseEvent()) 1480 const MouseEvent* event = 0; 1481 if (action.type() == NavigationTypeLinkClicked 1482 && action.event()->isMouseEvent()) 1483 event = static_cast<const MouseEvent*>(action.event()); 1484 else if (action.type() == NavigationTypeFormSubmitted 1485 && action.event() 1486 && action.event()->underlyingEvent() 1487 && action.event()->underlyingEvent()->isMouseEvent()) 1488 event = static_cast<const MouseEvent*>(action.event()->underlyingEvent()); 1489 1490 if (!event) 1481 1491 return false; 1482 1492 1483 const MouseEvent* event = static_cast<const MouseEvent*>(action.event());1484 1493 return WebViewImpl::navigationPolicyFromMouseEvent( 1485 1494 event->button(), event->ctrlKey(), event->shiftKey(), event->altKey(),
Note: See TracChangeset
for help on using the changeset viewer.