mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-26 14:18:48 +00:00
import changes from `dev' branch of rmottola/Arctic-Fox:
- let->var (7417185de3) - Bug 1200194 - Expose nsCaret::GetFrameAndOffset for reuse. r=roc This function can be reused by AccessibleCaret. (4506d97981) - Bug 1200194 - Fix AccessibleCaret is out of scrollport in cursor mode. r=roc (3c80be5af1) - Bug 1175171 - Deallocate GTK's KeymapWrapper on shutdown. r=karlt (e5e5468d71) - Bug 895274 part.6 Rename NS_EVENT_ALL to eAllEvents r=smaug (cc76e8ecc8) - Bug 895274 part.7 Rename NS_WINDOW_START to eWindowEventFirst r=smaug (c7414fa347) - Bug 895274 part.8 Rename NS_XUL_CLOSE to eWindowClose r=smaug (30e8142328) - Bug 895274 part.5 Rename NS_EVENT_NULL to eVoidEvent r=smaug (1950fb6c82) - Bug 895274 part.4 Clean up the macro names of EventNameList.h r=smaug (46a0c74362) - Bug 895274 part.9 Rename NS_KEY_PRESS to eKeyPress r=smaug (fb863b578a) - Bug 895274 part.10 Rename NS_KEY_UP to eKeyUp r=smaug (67a2e3c03a) - fix (f3a9ad8088) - Bug 1137557 - Part 1: Allow callee of TIP.keydown() to figure out preventDefault() of keydown and keypress event. r=masayuki, r+sr=smaug (c1d9bca9d0) - Bug 1119133 Implement TextEventDispatcher::EndInputTransaction() for ensuring TextEventDispatcher forgets the link with TextInputProcessor r=smaug (fffdced45e)
This commit is contained in:
@@ -287,22 +287,22 @@ HTMLButtonElement::PostHandleEvent(EventChainPostVisitor& aVisitor)
|
||||
|
||||
if (nsEventStatus_eIgnore == aVisitor.mEventStatus) {
|
||||
switch (aVisitor.mEvent->mMessage) {
|
||||
case NS_KEY_PRESS:
|
||||
case NS_KEY_UP:
|
||||
case eKeyPress:
|
||||
case eKeyUp:
|
||||
{
|
||||
// For backwards compat, trigger buttons with space or enter
|
||||
// (bug 25300)
|
||||
WidgetKeyboardEvent* keyEvent = aVisitor.mEvent->AsKeyboardEvent();
|
||||
if ((keyEvent->keyCode == NS_VK_RETURN &&
|
||||
NS_KEY_PRESS == aVisitor.mEvent->mMessage) ||
|
||||
eKeyPress == aVisitor.mEvent->mMessage) ||
|
||||
(keyEvent->keyCode == NS_VK_SPACE &&
|
||||
NS_KEY_UP == aVisitor.mEvent->mMessage)) {
|
||||
eKeyUp == aVisitor.mEvent->mMessage)) {
|
||||
DispatchSimulatedClick(this, aVisitor.mEvent->mFlags.mIsTrusted,
|
||||
aVisitor.mPresContext);
|
||||
aVisitor.mEventStatus = nsEventStatus_eConsumeNoDefault;
|
||||
}
|
||||
}
|
||||
break;// NS_KEY_PRESS
|
||||
break;
|
||||
|
||||
case NS_MOUSE_BUTTON_DOWN:
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user