From e101df3686478f4670153ed790c43832ca05f853 Mon Sep 17 00:00:00 2001 From: "dean_tessman%hotmail.com" Date: Tue, 4 Mar 2003 06:42:17 +0000 Subject: [PATCH] Don't display useless context menu items (Undo, Cut, Paste, Delete) when non-editable text is selected. --- browser/base/content/browser.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/browser/base/content/browser.js b/browser/base/content/browser.js index 920bc91f3c6c..9166e15cb02e 100644 --- a/browser/base/content/browser.js +++ b/browser/base/content/browser.js @@ -2942,13 +2942,13 @@ nsContextMenu.prototype = { goUpdateGlobalEditMenuItems(); - this.showItem( "context-undo", this.isTextSelected || this.onTextInput ); - this.showItem( "context-sep-undo", this.isTextSelected || this.onTextInput ); - this.showItem( "context-cut", this.isTextSelected || this.onTextInput ); + this.showItem( "context-undo", this.onTextInput ); + this.showItem( "context-sep-undo", this.onTextInput ); + this.showItem( "context-cut", this.onTextInput ); this.showItem( "context-copy", this.isTextSelected || this.onTextInput ); - this.showItem( "context-paste", this.isTextSelected || this.onTextInput ); - this.showItem( "context-delete", this.isTextSelected || this.onTextInput ); - this.showItem( "context-sep-paste", this.isTextSelected || this.onTextInput ); + this.showItem( "context-paste", this.onTextInput ); + this.showItem( "context-delete", this.onTextInput ); + this.showItem( "context-sep-paste", this.onTextInput ); this.showItem( "context-selectall", this.isTextSelected || this.onTextInput ); this.showItem( "context-sep-selectall", this.isTextSelected );