Don't display useless context menu items (Undo, Cut, Paste, Delete) when non-editable text is selected.

This commit is contained in:
dean_tessman%hotmail.com 2003-03-04 06:42:17 +00:00
Родитель 045c5afc96
Коммит e101df3686
1 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

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