loleaflet/src/control/Control.ContextMenu.js |   24 +++++++++++-------------
 1 file changed, 11 insertions(+), 13 deletions(-)

New commits:
commit 30c9414d6d65ce9d0cba4fb1fd44bfe5b6ce0c3a
Author: Pranav Kant <pran...@collabora.co.uk>
Date:   Fri Mar 31 11:05:41 2017 +0530

    loleaflet: Context menu cut/copy/paste is always internal
    
    If user wants to take something out of the document, he/she needs to
    make use of keyboard shortcuts to do the same.
    
    Change-Id: Id8237e0bfcb311d1a1465645042f160f7e1d8fb6

diff --git a/loleaflet/src/control/Control.ContextMenu.js 
b/loleaflet/src/control/Control.ContextMenu.js
index 73f0d51f..4961f892 100644
--- a/loleaflet/src/control/Control.ContextMenu.js
+++ b/loleaflet/src/control/Control.ContextMenu.js
@@ -130,18 +130,16 @@ L.Control.ContextMenu = L.Control.extend({
                                        itemName = 
itemName.replace(itemName.substring('Delete All Comments by '.length), 'This 
Author');
                                }
 
-                               if (map['wopi'].DisableCopy) {
-                                       switch (commandName) {
-                                       case 'Cut':
-                                               itemName = _('Internal Cut');
-                                               break;
-                                       case 'Copy':
-                                               itemName = _('Internal Copy');
-                                               break;
-                                       case 'Paste':
-                                               itemName = _('Internal Paste');
-                                               break;
-                                       }
+                               switch (commandName) {
+                               case 'Cut':
+                                       itemName = _('Internal Cut');
+                                       break;
+                               case 'Copy':
+                                       itemName = _('Internal Copy');
+                                       break;
+                               case 'Paste':
+                                       itemName = _('Internal Paste');
+                                       break;
                                }
 
                                contextMenu[item.command] = {
@@ -161,7 +159,7 @@ L.Control.ContextMenu = L.Control.extend({
                                isLastItemText = true;
                        } else if (item.type === 'menu') {
                                itemName = item.text.replace('~', '');
-                               if (map['wopi'].DisableCopy && itemName === 
'Paste Special') {
+                               if (itemName === 'Paste Special') {
                                        itemName = _('Internal Paste Special');
                                }
                                var submenu = 
this._createContextMenuStructure(item);
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to