loleaflet/src/control/Control.Menubar.js |   10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

New commits:
commit e8ba2ca35a79bb3b721f99ba662dee6f40d9aec1
Author:     Tor Lillqvist <t...@collabora.com>
AuthorDate: Fri Apr 5 18:56:31 2019 +0300
Commit:     Tor Lillqvist <t...@collabora.com>
CommitDate: Fri Apr 5 21:09:26 2019 +0300

    tdf#124177: Don't show the Help > Keyboard shortcuts menu entry in mobile 
apps

diff --git a/loleaflet/src/control/Control.Menubar.js 
b/loleaflet/src/control/Control.Menubar.js
index fb44a280b..f8011f8a9 100644
--- a/loleaflet/src/control/Control.Menubar.js
+++ b/loleaflet/src/control/Control.Menubar.js
@@ -225,7 +225,7 @@ L.Control.Menubar = L.Control.extend({
                                        {uno: '.uno:OnlineAutoFormat'}]}
                        ]},
                        {name: _UNO('.uno:HelpMenu', 'text'), id: 'help', type: 
'menu', menu: [
-                               {name: _('Keyboard shortcuts'), id: 
'keyboard-shortcuts', type: 'action'},
+                               {name: _('Keyboard shortcuts'), id: 
'keyboard-shortcuts', type: 'action', mobileapp: false},
                                {name: _('About'), id: 'about', type: 'action'}]
                        },
                        {name: _('Last modification'), id: 'last-mod', type: 
'action', mobile: false, tablet: false}
@@ -313,7 +313,7 @@ L.Control.Menubar = L.Control.extend({
                                        {name: _('None (Do not check 
spelling)'), id: 'nonelanguage', uno: 
'.uno:LanguageStatus?Language:string=Default_LANGUAGE_NONE'}]}
                        ]},
                        {name: _UNO('.uno:HelpMenu', 'presentation'), id: 
'help', type: 'menu', menu: [
-                               {name: _('Keyboard shortcuts'), id: 
'keyboard-shortcuts', type: 'action'},
+                               {name: _('Keyboard shortcuts'), id: 
'keyboard-shortcuts', type: 'action', mobileapp: false},
                                {name: _('About'), id: 'about', type: 'action'}]
                        },
                        {name: _('Last modification'), id: 'last-mod', type: 
'action', mobile: false, tablet: false}
@@ -412,7 +412,7 @@ L.Control.Menubar = L.Control.extend({
                                {uno: '.uno:GoalSeekDialog'}
                        ]},
                        {name: _UNO('.uno:HelpMenu', 'spreadsheet'), id: 
'help', type: 'menu', menu: [
-                               {name: _('Keyboard shortcuts'), id: 
'keyboard-shortcuts', type: 'action'},
+                               {name: _('Keyboard shortcuts'), id: 
'keyboard-shortcuts', type: 'action', mobileapp: false},
                                {name: _('About'), id: 'about', type: 'action'}]
                        },
                        {name: _('Last modification'), id: 'last-mod', type: 
'action', mobile: false, tablet: false}
@@ -968,6 +968,10 @@ L.Control.Menubar = L.Control.extend({
                                $(aItem).css('display', 'none');
                        }
 
+                       if (menu[i].mobileapp == false && 
window.ThisIsAMobileApp) {
+                               $(aItem).css('display', 'none');
+                       }
+
                        itemList.push(liItem);
                }
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to