Bug 911463 Fix wrong cast in nsDOMUIEvent::IsChar() const r=smaug

This commit is contained in:
Masayuki Nakano 2013-09-01 09:17:55 +09:00
parent 2d304efc08
commit b117039209

View File

@ -348,7 +348,7 @@ nsDOMUIEvent::IsChar() const
case NS_KEY_EVENT:
return static_cast<nsKeyEvent*>(mEvent)->isChar;
case NS_TEXT_EVENT:
return static_cast<nsKeyEvent*>(mEvent)->isChar;
return static_cast<nsTextEvent*>(mEvent)->isChar;
default:
return false;
}