/* * 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')} Ctrl + s ⌘ + s
${$msg('CREATE_SIBLING_TOPIC')} Enter Enter
${$msg('CREATE_CHILD_TOPIC')} Insert / Tab ⌘ + Enter / Tab
${$msg('DELETE_TOPIC')} Delete Delete
${$msg('EDIT_TOPIC_TEXT')} ${$msg('JUST_START_TYPING')} | F2 ${$msg('JUST_START_TYPING')} | F2
${$msg('MULTIPLE_LINES')} Ctrl + Enter ⌘ + Enter
${$msg('COPY_AND_PASTE_TOPICS')} Ctrl + c/Ctrl + v ⌘ + c/⌘ + v
${$msg('COLLAPSE_CHILDREN')} Space bar Space bar
${$msg('TOPIC_NAVIGATION')} ${$msg('ARROW_KEYS')} ${$msg('ARROW_KEYS')}
${$msg('SELECT_MULTIPLE_NODES')} Ctrl + Mouse Click Ctrl + Mouse Click
${$msg('UNDO_EDITION')} Ctrl + z ⌘ + z
${$msg('REDO_EDITION')} Ctrl + Shift + z ⌘ + Shift + z
${$msg('SELECT_ALL_TOPIC')} Ctrl + a ⌘ + a
${$msg('CANCEL_TEXT_CHANGES')} Esc Esc
${$msg('DESELECT_ALL_TOPIC')} Ctrl + Shift + a ⌘ + Shift + a
${$msg('CHANGE_TEXT_ITALIC')} Ctrl + i ⌘ + i
${$msg('CHANGE_TEXT_BOLD')} Ctrl + b ⌘ + b
${$msg('TOPIC_NOTE')} Ctrl + k ⌘ + k
${$msg('TOPIC_LINK')} Ctrl + l ⌘ + l
`); this.show(); } } export default KeyboardShortcutDialog;