Bug 309227 - Support for mousewheel.withmetakey.*/mousewheel.horizontal.withmetakey.*. r=mento, sr=neil.
git-svn-id: svn://10.0.0.236/trunk@180946 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -2013,6 +2013,7 @@ nsEventStateManager::PostHandleEvent(nsPresContext* aPresContext,
|
||||
NS_NAMED_LITERAL_CSTRING(withshift, ".withshiftkey");
|
||||
NS_NAMED_LITERAL_CSTRING(withalt, ".withaltkey");
|
||||
NS_NAMED_LITERAL_CSTRING(withcontrol, ".withcontrolkey");
|
||||
NS_NAMED_LITERAL_CSTRING(withmetakey, ".withmetakey");
|
||||
NS_NAMED_LITERAL_CSTRING(withno, ".withnokey");
|
||||
NS_NAMED_LITERAL_CSTRING(actionslot, ".action");
|
||||
NS_NAMED_LITERAL_CSTRING(numlinesslot, ".numlines");
|
||||
@@ -2028,6 +2029,8 @@ nsEventStateManager::PostHandleEvent(nsPresContext* aPresContext,
|
||||
baseKey.Append(withcontrol);
|
||||
} else if (msEvent->isAlt) {
|
||||
baseKey.Append(withalt);
|
||||
} else if (msEvent->isMeta) {
|
||||
baseKey.Append(withmetakey);
|
||||
} else {
|
||||
baseKey.Append(withno);
|
||||
}
|
||||
|
||||
@@ -796,6 +796,9 @@ pref("mousewheel.withshiftkey.sysnumlines",true);
|
||||
pref("mousewheel.withaltkey.action",2);
|
||||
pref("mousewheel.withaltkey.numlines",1);
|
||||
pref("mousewheel.withaltkey.sysnumlines",false);
|
||||
pref("mousewheel.withmetakey.action",0);
|
||||
pref("mousewheel.withmetakey.numlines",1);
|
||||
pref("mousewheel.withmetakey.sysnumlines",true);
|
||||
|
||||
// on platforms where scroll messages differ between horizontal scroll
|
||||
// and back/forward button events we can activate them by default
|
||||
@@ -829,6 +832,9 @@ pref("mousewheel.horizscroll.withshiftkey.sysnumlines",true);
|
||||
pref("mousewheel.horizscroll.withaltkey.action",2);
|
||||
pref("mousewheel.horizscroll.withaltkey.numlines",1);
|
||||
pref("mousewheel.horizscroll.withaltkey.sysnumlines",true);
|
||||
pref("mousewheel.horizscroll.withmetakey.action",0);
|
||||
pref("mousewheel.horizscroll.withmetakey.numlines",1);
|
||||
pref("mousewheel.horizscroll.withmetakey.sysnumlines",true);
|
||||
#endif
|
||||
#ifndef HORIZSCROLL_AVAILABLE
|
||||
// disable horizontal scrolling to be able to use back/forward buttons
|
||||
@@ -844,6 +850,9 @@ pref("mousewheel.horizscroll.withshiftkey.sysnumlines",false);
|
||||
pref("mousewheel.horizscroll.withaltkey.action",2);
|
||||
pref("mousewheel.horizscroll.withaltkey.numlines",-1);
|
||||
pref("mousewheel.horizscroll.withaltkey.sysnumlines",false);
|
||||
pref("mousewheel.horizscroll.withmetakey.action",2);
|
||||
pref("mousewheel.horizscroll.withmetakey.numlines",-1);
|
||||
pref("mousewheel.horizscroll.withmetakey.sysnumlines",false);
|
||||
#endif
|
||||
|
||||
pref("profile.confirm_automigration",true);
|
||||
|
||||
Reference in New Issue
Block a user