From ca20e8ea9c180e3c4687faebaa3d2e7e877757c5 Mon Sep 17 00:00:00 2001 From: "mozilla.mano%sent.com" Date: Mon, 10 Apr 2006 10:36:16 +0000 Subject: [PATCH] Bug 107433 - Make it possible to turn off click-and-hold contextual menu access. r=pedemonte, sr=neil, b181=bzbarsky. git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@193986 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/content/events/src/nsEventStateManager.cpp | 3 ++- mozilla/modules/libpref/src/init/all.js | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/mozilla/content/events/src/nsEventStateManager.cpp b/mozilla/content/events/src/nsEventStateManager.cpp index 2a959a1231d..37882181dde 100644 --- a/mozilla/content/events/src/nsEventStateManager.cpp +++ b/mozilla/content/events/src/nsEventStateManager.cpp @@ -1410,7 +1410,8 @@ nsEventStateManager::BeginTrackingDragGesture(nsPresContext* aPresContext, #ifdef CLICK_HOLD_CONTEXT_MENUS // fire off a timer to track click-hold - CreateClickHoldTimer ( aPresContext, inDownFrame, inDownEvent ); + if (nsContentUtils::GetBoolPref("ui.click_hold_context_menus", PR_TRUE)) + CreateClickHoldTimer ( aPresContext, inDownFrame, inDownEvent ); #endif } diff --git a/mozilla/modules/libpref/src/init/all.js b/mozilla/modules/libpref/src/init/all.js index 190af29c15d..b541779d408 100644 --- a/mozilla/modules/libpref/src/init/all.js +++ b/mozilla/modules/libpref/src/init/all.js @@ -1335,6 +1335,7 @@ pref("intl.keyboard.per_window_layout", false); // Mac specific preference defaults pref("browser.drag_out_of_frame_style", 1); pref("ui.key.saveLink.shift", false); // true = shift, false = meta +pref("ui.click_hold_context_menus", true); // default font name (in UTF8)