[Libreoffice-commits] online.git: Branch 'distro/collabora/collabora-online-4' - loleaflet/src
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Fri Apr 5 18:09:01 UTC 2019
loleaflet/src/control/Control.Menubar.js | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
New commits:
commit 73277251537f85bf8aa0c4875ef1101971c3aadb
Author: Tor Lillqvist <tml at collabora.com>
AuthorDate: Fri Apr 5 18:56:31 2019 +0300
Commit: Tor Lillqvist <tml at collabora.com>
CommitDate: Fri Apr 5 21:04:09 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 1ba848f07..cc3d96df5 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}
@@ -411,7 +411,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}
@@ -967,6 +967,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);
}
More information about the Libreoffice-commits
mailing list