Bug 572622. Make all content command events sent to the focused element. r=masayuki
authorTimothy Nikkel <tnikkel@gmail.com>
Fri, 25 Jun 2010 16:51:17 -0500
changeset 46253 76d447ac06589a818683c00bd350dee0fd08b724
parent 46252 4f1ae85ff9d149cb9b015839d0c3f611fc93ad1f
child 46254 2b45b05d003e8b517cad0d0aee74a56225cac306
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmasayuki
bugs572622
milestone1.9.3a6pre
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 572622. Make all content command events sent to the focused element. r=masayuki
widget/public/nsGUIEvent.h
--- a/widget/public/nsGUIEvent.h
+++ b/widget/public/nsGUIEvent.h
@@ -1429,22 +1429,17 @@ enum nsDragDropEventStatus {
         ((evnt)->message == NS_QUERY_CONTENT_STATE) || \
         ((evnt)->message == NS_QUERY_SELECTION_AS_TRANSFERABLE) || \
         ((evnt)->message == NS_QUERY_CHARACTER_AT_POINT))
 
 #define NS_IS_SELECTION_EVENT(evnt) \
        (((evnt)->message == NS_SELECTION_SET))
 
 #define NS_IS_CONTENT_COMMAND_EVENT(evnt) \
-       (((evnt)->message == NS_CONTENT_COMMAND_CUT) || \
-        ((evnt)->message == NS_CONTENT_COMMAND_COPY) || \
-        ((evnt)->message == NS_CONTENT_COMMAND_PASTE) || \
-        ((evnt)->message == NS_CONTENT_COMMAND_DELETE) || \
-        ((evnt)->message == NS_CONTENT_COMMAND_UNDO) || \
-        ((evnt)->message == NS_CONTENT_COMMAND_REDO))
+       ((evnt)->eventStructType == NS_CONTENT_COMMAND_EVENT)
 
 #define NS_IS_PLUGIN_EVENT(evnt) \
        (((evnt)->message == NS_PLUGIN_EVENT))
 
 #define NS_IS_NON_RETARGETED_PLUGIN_EVENT(evnt) \
        (((evnt)->message == NS_NON_RETARGETED_PLUGIN_EVENT))
 
 #define NS_IS_TRUSTED_EVENT(event) \