Bug 182997 patch by johann.petrak@chello.at r=timeless sr=jag showItem("context-copy") should check isTextSelected and onTextInput

This commit is contained in:
cbiesinger%web.de 2006-07-29 05:41:42 +00:00
parent 86c22ad044
commit a397877c79

View File

@ -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 );