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

This commit is contained in:
Book Pauk
2022-04-14 18:34:41 +07:00
parent 4fdaf5f555
commit b6f4c153e5
4 changed files with 40 additions and 4 deletions

View File

@@ -4,6 +4,7 @@ import googleFonts from './fonts/fonts.json';
const readerActions = {
'loader': 'На страницу загрузки',
'loadFile': 'Загрузить файл с диска',
'loadBuffer': 'Загрузить из буфера обмена',
'help': 'Вызвать cправку',
'settings': 'Настроить',
'undoAction': 'Действие назад',
@@ -37,6 +38,7 @@ const readerActions = {
//readerActions[name]
const toolButtons = [
{name: 'loadFile', show: true},
{name: 'loadBuffer', show: true},
{name: 'help', show: true},
{name: 'undoAction', show: true},
{name: 'redoAction', show: true},
@@ -57,6 +59,7 @@ const toolButtons = [
const hotKeys = [
{name: 'loader', codes: ['Escape']},
{name: 'loadFile', codes: ['F3']},
{name: 'loadBuffer', codes: ['F4']},
{name: 'help', codes: ['F1', 'H']},
{name: 'settings', codes: ['S']},
{name: 'undoAction', codes: ['Ctrl+BracketLeft']},