From a397877c79ab53ecceb2aa08b83f19505305b393 Mon Sep 17 00:00:00 2001 From: "cbiesinger%web.de" Date: Sat, 29 Jul 2006 05:41:42 +0000 Subject: [PATCH] Bug 182997 patch by johann.petrak@chello.at r=timeless sr=jag showItem("context-copy") should check isTextSelected and onTextInput --- suite/common/nsContextMenu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/suite/common/nsContextMenu.js b/suite/common/nsContextMenu.js index 1029ffb7c584..734c83cb7694 100644 --- a/suite/common/nsContextMenu.js +++ b/suite/common/nsContextMenu.js @@ -185,7 +185,7 @@ nsContextMenu.prototype = { this.showItem( "context-redo", this.onTextInput ); this.showItem( "context-sep-undo", this.onTextInput ); this.showItem( "context-cut", this.onTextInput ); - this.showItem( "context-copy", true ); + this.showItem( "context-copy", this.isTextSelected || this.onTextInput); this.showItem( "context-paste", this.onTextInput ); this.showItem( "context-delete", this.onTextInput ); this.showItem( "context-sep-paste", this.onTextInput );