From 1b19156a4e2f29eeb3d3cea2564a86d0c10aab26 Mon Sep 17 00:00:00 2001 From: "neil%parkwaycc.co.uk" Date: Fri, 14 Feb 2003 09:59:51 +0000 Subject: [PATCH] Bug 82547 patch allows Composer to catch mouse events on some form elements r=glazman sr=kin a=asa --- editor/composer/src/res/EditorOverride.css | 11 ++++++++++- editor/ui/composer/content/EditorOverride.css | 11 ++++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/editor/composer/src/res/EditorOverride.css b/editor/composer/src/res/EditorOverride.css index 6ebe5e4153f..1e0a85c61aa 100644 --- a/editor/composer/src/res/EditorOverride.css +++ b/editor/composer/src/res/EditorOverride.css @@ -64,7 +64,16 @@ a:link { color: -moz-hyperlinktext; } -input, button, select, textarea { +/* Allow double-clicks on these widgets to open properties dialogs + XXX except when the widget has disabled attribute */ +input, button, textarea { + -moz-user-select: all !important; + -moz-user-input: auto !important; + -moz-user-focus: none !important; +} + +/* XXX Still need a better way of blocking other events to these widgets */ +select, input[disabled], input[type="checkbox"], input[type="radio"], input[type="file"] { -moz-user-select: all !important; -moz-user-input: none !important; -moz-user-focus: none !important; diff --git a/editor/ui/composer/content/EditorOverride.css b/editor/ui/composer/content/EditorOverride.css index 6ebe5e4153f..1e0a85c61aa 100644 --- a/editor/ui/composer/content/EditorOverride.css +++ b/editor/ui/composer/content/EditorOverride.css @@ -64,7 +64,16 @@ a:link { color: -moz-hyperlinktext; } -input, button, select, textarea { +/* Allow double-clicks on these widgets to open properties dialogs + XXX except when the widget has disabled attribute */ +input, button, textarea { + -moz-user-select: all !important; + -moz-user-input: auto !important; + -moz-user-focus: none !important; +} + +/* XXX Still need a better way of blocking other events to these widgets */ +select, input[disabled], input[type="checkbox"], input[type="radio"], input[type="file"] { -moz-user-select: all !important; -moz-user-input: none !important; -moz-user-focus: none !important;