Skip to content
This repository was archived by the owner on May 19, 2020. It is now read-only.

Commit c58f1d8

Browse files
committed
feat(src): finalize block quote shortcut
Signed-off-by: irmerk <[email protected]>
1 parent 0f1ad73 commit c58f1d8

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/FormattingToolbar/toolbarTooltip.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ export const capitalizeWord = word => capitalizeFirst(word) + sliceWord(word);
4848

4949
export const identifyBlock = (block) => {
5050
const typeBeginning = firstTwoLetters(block);
51-
if (typeBeginning === 'bl') return `Quote (${MOD}+Q)`;
52-
if (typeBeginning === 'ul') return `Bulleted List (${MOD}+Shift+8)`;
53-
if (typeBeginning === 'ol') return `Numbered List (${MOD}+Shift+7)`;
51+
if (typeBeginning === 'bl') return `Quote (${MOD}+⇧+. )`;
52+
if (typeBeginning === 'ul') return `Bulleted List (${MOD}++8)`;
53+
if (typeBeginning === 'ol') return `Numbered List (${MOD}++7)`;
5454
return null;
5555
};

src/SlateAsInputEditor/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ const SlateAsInputEditor = React.forwardRef((props, ref) => {
394394
return editor.toggleMark(CONST.FONT_ITALIC);
395395
case isHotKey('mod+alt+c', event) && isEditable(editor, CONST.FONT_CODE):
396396
return editor.toggleMark(CONST.FONT_CODE);
397-
case isHotKey('mod+q', event) && isEditable(editor, CONST.BLOCK_QUOTE):
397+
case isHotKey('mod+shift+.', event) && isEditable(editor, CONST.BLOCK_QUOTE):
398398
return handleBlockQuotes(editor);
399399
case isHotKey('mod+shift+7', event) && isEditable(editor, CONST.OL_LIST):
400400
return handleList(editor, CONST.OL_LIST);

src/icons/navigation-right.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import * as tips from '../FormattingToolbar/toolbarTooltip';
44

55
export const type = () => 'redo';
66

7-
export const label = () => `Redo (${tips.MOD}+Shift+Z)`;
7+
export const label = () => `Redo (${tips.MOD}++Z)`;
88

99
export const height = () => '25px';
1010

0 commit comments

Comments
 (0)