зеркало из https://github.com/mozilla/gecko-dev.git
Don't display useless context menu items (Undo, Cut, Paste, Delete) when non-editable text is selected.
This commit is contained in:
Родитель
045c5afc96
Коммит
e101df3686
|
@ -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 );
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче