Bug 694226, merge nsWidgetAtoms and nsGkAtoms, r=roc
This commit is contained in:
@@ -1517,7 +1517,7 @@ is_latin_shortcut_key(quint32 aKeyval)
|
||||
nsEventStatus
|
||||
nsWindow::DispatchCommandEvent(nsIAtom* aCommand)
|
||||
{
|
||||
nsCommandEvent event(PR_TRUE, nsWidgetAtoms::onAppCommand, aCommand, this);
|
||||
nsCommandEvent event(PR_TRUE, nsGkAtoms::onAppCommand, aCommand, this);
|
||||
|
||||
nsEventStatus status;
|
||||
DispatchEvent(&event, status);
|
||||
@@ -1673,19 +1673,19 @@ nsWindow::OnKeyPressEvent(QKeyEvent *aEvent)
|
||||
// Look for specialized app-command keys
|
||||
switch (aEvent->key()) {
|
||||
case Qt::Key_Back:
|
||||
return DispatchCommandEvent(nsWidgetAtoms::Back);
|
||||
return DispatchCommandEvent(nsGkAtoms::Back);
|
||||
case Qt::Key_Forward:
|
||||
return DispatchCommandEvent(nsWidgetAtoms::Forward);
|
||||
return DispatchCommandEvent(nsGkAtoms::Forward);
|
||||
case Qt::Key_Refresh:
|
||||
return DispatchCommandEvent(nsWidgetAtoms::Reload);
|
||||
return DispatchCommandEvent(nsGkAtoms::Reload);
|
||||
case Qt::Key_Stop:
|
||||
return DispatchCommandEvent(nsWidgetAtoms::Stop);
|
||||
return DispatchCommandEvent(nsGkAtoms::Stop);
|
||||
case Qt::Key_Search:
|
||||
return DispatchCommandEvent(nsWidgetAtoms::Search);
|
||||
return DispatchCommandEvent(nsGkAtoms::Search);
|
||||
case Qt::Key_Favorites:
|
||||
return DispatchCommandEvent(nsWidgetAtoms::Bookmarks);
|
||||
return DispatchCommandEvent(nsGkAtoms::Bookmarks);
|
||||
case Qt::Key_HomePage:
|
||||
return DispatchCommandEvent(nsWidgetAtoms::Home);
|
||||
return DispatchCommandEvent(nsGkAtoms::Home);
|
||||
case Qt::Key_Copy:
|
||||
case Qt::Key_F16: // F16, F20, F18, F14 are old keysyms for Copy Cut Paste Undo
|
||||
return DispatchContentCommandEvent(NS_CONTENT_COMMAND_COPY);
|
||||
|
||||
Reference in New Issue
Block a user