Remove shortcuts display from menu

This commit is contained in:
Paulo Gustavo Veiga 2022-03-13 23:55:10 -03:00
parent a6262ee5ff
commit 7e207a5285

View File

@ -211,7 +211,7 @@ class Menu extends IMenu {
if (undoButton) { if (undoButton) {
undoButton.disable(); undoButton.disable();
} }
Menu._registerTooltip('undoEdition', $msg('UNDO'), 'meta+Z'); Menu._registerTooltip('undoEdition', $msg('UNDO'));
const redoButton = this._addButton('redoEdition', false, false, () => { const redoButton = this._addButton('redoEdition', false, false, () => {
designer.redo(); designer.redo();
@ -219,7 +219,7 @@ class Menu extends IMenu {
if (redoButton) { if (redoButton) {
redoButton.disable(); redoButton.disable();
} }
Menu._registerTooltip('redoEdition', $msg('REDO'), 'meta+shift+Z'); Menu._registerTooltip('redoEdition', $msg('REDO'));
if (redoButton && undoButton) { if (redoButton && undoButton) {
designer.addEvent('modelUpdate', (event) => { designer.addEvent('modelUpdate', (event) => {
@ -239,12 +239,12 @@ class Menu extends IMenu {
this._addButton('addTopic', true, false, () => { this._addButton('addTopic', true, false, () => {
designer.createSiblingForSelectedNode(); designer.createSiblingForSelectedNode();
}); });
Menu._registerTooltip('addTopic', $msg('ADD_TOPIC'), 'Enter'); Menu._registerTooltip('addTopic', $msg('ADD_TOPIC');
this._addButton('deleteTopic', true, true, () => { this._addButton('deleteTopic', true, true, () => {
designer.deleteSelectedEntities(); designer.deleteSelectedEntities();
}); });
Menu._registerTooltip('deleteTopic', $msg('TOPIC_DELETE'), 'Delete'); Menu._registerTooltip('deleteTopic', $msg('TOPIC_DELETE'));
this._addButton('topicLink', true, false, () => { this._addButton('topicLink', true, false, () => {
designer.addLink(); designer.addLink();
@ -279,7 +279,7 @@ class Menu extends IMenu {
() => { () => {
this.save(saveElem, designer, true); this.save(saveElem, designer, true);
}); });
Menu._registerTooltip('save', $msg('SAVE'), 'meta+S'); Menu._registerTooltip('save', $msg('SAVE'));
// Register unload save ... // Register unload save ...
window.addEventListener('beforeunload', () => { window.addEventListener('beforeunload', () => {