mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-11 01:43:23 +01:00
Remove shortcuts display from menu
This commit is contained in:
parent
a6262ee5ff
commit
7e207a5285
@ -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', () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user