Добавлена кнопка 'Загрузить файл с диска'

This commit is contained in:
Book Pauk
2022-04-14 17:48:51 +07:00
parent b4ee9d6c00
commit 4fdaf5f555
3 changed files with 29 additions and 3 deletions

View File

@@ -2,8 +2,9 @@ import * as utils from '../../share/utils';
import googleFonts from './fonts/fonts.json';
const readerActions = {
'help': 'Вызвать cправку',
'loader': 'На страницу загрузки',
'loadFile': 'Загрузить файл с диска',
'help': 'Вызвать cправку',
'settings': 'Настроить',
'undoAction': 'Действие назад',
'redoAction': 'Действие вперед',
@@ -35,6 +36,7 @@ const readerActions = {
//readerActions[name]
const toolButtons = [
{name: 'loadFile', show: true},
{name: 'help', show: true},
{name: 'undoAction', show: true},
{name: 'redoAction', show: true},
@@ -53,8 +55,9 @@ const toolButtons = [
//readerActions[name]
const hotKeys = [
{name: 'help', codes: ['F1', 'H']},
{name: 'loader', codes: ['Escape']},
{name: 'loadFile', codes: ['F3']},
{name: 'help', codes: ['F1', 'H']},
{name: 'settings', codes: ['S']},
{name: 'undoAction', codes: ['Ctrl+BracketLeft']},
{name: 'redoAction', codes: ['Ctrl+BracketRight']},