/* * Copyright [2021] [wisemapping] * * Licensed under WiseMapping Public License, Version 1.0 (the "License"). * It is basically the Apache License, Version 2.0 (the "License") plus the * "powered by wisemapping" text requirement on every single page; * you may not use this file except in compliance with the License. * You may obtain a copy of the license at * * http://www.wisemapping.org/license * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import BootstrapDialog from '../bootstrap/BootstrapDialog'; import { $msg } from '@wisemapping/mindplot'; class KeyboardShortcutDialog extends BootstrapDialog { constructor() { super($msg('SHORTCUTS'), { closeButton: true, acceptButton: false, }); this.setContent(`
${$msg('ACTION')} | Windows - Linux | Mac OS X |
---|---|---|
${$msg('SAVE_CHANGES')} | ${$msg('CTRL')} + S | ⌘ + S |
${$msg('CREATE_SIBLING_TOPIC')} | Enter | Enter |
${$msg('CREATE_CHILD_TOPIC')} | ${$msg('K_INSERT')} / Tab | ⌘ + Enter / Tab |
${$msg('DELETE_TOPIC')} | ${$msg('K_DELETE')} | Delete |
${$msg('EDIT_TOPIC_TEXT')} | ${$msg('JUST_START_TYPING')} | F2 | ${$msg('JUST_START_TYPING')} | F2 |
${$msg('MULTIPLE_LINES')} | ${$msg('CTRL')} + Enter | ⌘ + Enter |
${$msg('COPY_AND_PASTE_TOPICS')} | ${$msg('CTRL')} + C / ${$msg('CTRL')} + V | ⌘ + C / ⌘ + V |
${$msg('COLLAPSE_CHILDREN')} | ${$msg('SPACE_BAR')} | ${$msg('SPACE_BAR')} |
${$msg('TOPIC_NAVIGATION')} | ${$msg('ARROW_KEYS')} | ${$msg('ARROW_KEYS')} |
${$msg('SELECT_MULTIPLE_NODES')} | ${$msg('CTRL')} + ${$msg('MOUSE_CLICK')} | ${$msg('CTRL')} + ${$msg('MOUSE_CLICK')} |
${$msg('UNDO_EDITION')} | ${$msg('CTRL')} + Z | ⌘ + Z |
${$msg('REDO_EDITION')} | ${$msg('CTRL')} + Shift + Z | ⌘ + Shift + Z |
${$msg('SELECT_ALL_TOPIC')} | ${$msg('CTRL')} + A | ⌘ + A |
${$msg('CANCEL_TEXT_CHANGES')} | Esc | Esc |
${$msg('DESELECT_ALL_TOPIC')} | ${$msg('CTRL')} + Shift + A | ⌘ + Shift + A |
${$msg('CHANGE_TEXT_ITALIC')} | ${$msg('CTRL')} + I | ⌘ + I |
${$msg('CHANGE_TEXT_BOLD')} | ${$msg('CTRL')} + B | ⌘ + B |
${$msg('TOPIC_NOTE')} | ${$msg('CTRL')} + K | ⌘ + K |
${$msg('TOPIC_LINK')} | ${$msg('CTRL')} + L | ⌘ + L |