Map keyboard shortcuts on windows (#526)
* Map keyboard shortcuts on windows * Fixed also saving commands * Fix keyboard shortcut for keyboard shortcuts * Fixed guide * Cmd -> Mod
This commit is contained in:
@ -1,10 +1,11 @@
|
||||
// @flow
|
||||
import { Change } from 'slate';
|
||||
import { isModKey } from '../utils';
|
||||
|
||||
export default function KeyboardShortcuts() {
|
||||
return {
|
||||
onKeyDown(ev: SyntheticKeyboardEvent, change: Change) {
|
||||
if (!ev.metaKey) return null;
|
||||
if (!isModKey(ev)) return null;
|
||||
|
||||
switch (ev.key) {
|
||||
case 'b':
|
||||
|
Reference in New Issue
Block a user