From c58f1d82f7c9bbfb5f1de1a3da9cf39c64c3bc3a Mon Sep 17 00:00:00 2001 From: irmerk Date: Thu, 12 Mar 2020 15:18:49 -0400 Subject: [PATCH] feat(src): finalize block quote shortcut Signed-off-by: irmerk --- src/FormattingToolbar/toolbarTooltip.js | 6 +++--- src/SlateAsInputEditor/index.js | 2 +- src/icons/navigation-right.js | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/FormattingToolbar/toolbarTooltip.js b/src/FormattingToolbar/toolbarTooltip.js index 01f2473..f0c0475 100644 --- a/src/FormattingToolbar/toolbarTooltip.js +++ b/src/FormattingToolbar/toolbarTooltip.js @@ -48,8 +48,8 @@ export const capitalizeWord = word => capitalizeFirst(word) + sliceWord(word); export const identifyBlock = (block) => { const typeBeginning = firstTwoLetters(block); - if (typeBeginning === 'bl') return `Quote (${MOD}+Q)`; - if (typeBeginning === 'ul') return `Bulleted List (${MOD}+Shift+8)`; - if (typeBeginning === 'ol') return `Numbered List (${MOD}+Shift+7)`; + if (typeBeginning === 'bl') return `Quote (${MOD}+⇧+. )`; + if (typeBeginning === 'ul') return `Bulleted List (${MOD}+⇧+8)`; + if (typeBeginning === 'ol') return `Numbered List (${MOD}+⇧+7)`; return null; }; diff --git a/src/SlateAsInputEditor/index.js b/src/SlateAsInputEditor/index.js index 6ed8c4e..d216d9e 100644 --- a/src/SlateAsInputEditor/index.js +++ b/src/SlateAsInputEditor/index.js @@ -394,7 +394,7 @@ const SlateAsInputEditor = React.forwardRef((props, ref) => { return editor.toggleMark(CONST.FONT_ITALIC); case isHotKey('mod+alt+c', event) && isEditable(editor, CONST.FONT_CODE): return editor.toggleMark(CONST.FONT_CODE); - case isHotKey('mod+q', event) && isEditable(editor, CONST.BLOCK_QUOTE): + case isHotKey('mod+shift+.', event) && isEditable(editor, CONST.BLOCK_QUOTE): return handleBlockQuotes(editor); case isHotKey('mod+shift+7', event) && isEditable(editor, CONST.OL_LIST): return handleList(editor, CONST.OL_LIST); diff --git a/src/icons/navigation-right.js b/src/icons/navigation-right.js index 30813dd..eaa2b18 100644 --- a/src/icons/navigation-right.js +++ b/src/icons/navigation-right.js @@ -4,7 +4,7 @@ import * as tips from '../FormattingToolbar/toolbarTooltip'; export const type = () => 'redo'; -export const label = () => `Redo (${tips.MOD}+Shift+Z)`; +export const label = () => `Redo (${tips.MOD}+⇧+Z)`; export const height = () => '25px';