PageSourceSearch

https://www.draftail.org/assets/js/9f093309.3b596046.js

js draftail.org collected 2026-10-03 23:20:51 UTC 13,124 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunkdraftail_org=globalThis.webpackChunkdraftail_org||[]).push([[5204],{28453:(d,e,t)=>{t.d(e,{R:()=>n,x:()=>l});var s=t(96540);const r={},c=s.createContext(r);function n(d){const e=s.useContext(c);return s.useMemo(function(){return"function"==typeof d?d(e):{...e,...d}},[e,d])}function l(d){let e;return e=d.disableParentContext?"function"==typeof d.components?d.components(r):d.components||r:n(d.components),s.createElement(c.Provider,{value:e},d.children)}},60510:(d,e,t)=>{t.r(e),t.d(e,{assets:()=>i,contentTitle:()=>l,default:()=>j,frontMatter:()=>n,metadata:()=>s,toc:()=>x});const s=JSON.parse('{"id":"keyboard-shortcuts","title":"Keyboard shortcuts","description":"Here are all of the keyboard shortcuts supported by the editor. Please bear in mind shortcuts may not be available if the corresponding action isn\'t enabled in the current editor.","source":"@site/versioned_docs/version-1.0.0/KeyboardShortcuts.md","sourceDirName":".","slug":"/keyboard-shortcuts","permalink":"/docs/1.0.0/keyboard-shortcuts","draft":false,"unlisted":false,"editUrl":"https://github.com/thibaudcolas/draftail.org/edit/main/versioned_docs/version-1.0.0/KeyboardShortcuts.md","tags":[],"version":"1.0.0","lastUpdatedBy":"Thibaud Colas","lastUpdatedAt":1763469930000,"frontMatter":{"id":"keyboard-shortcuts","title":"Keyboard shortcuts","original_id":"keyboard-shortcuts"},"sidebar":"docs","previous":{"title":"User guide","permalink":"/docs/1.0.0/user-guide"},"next":{"title":"Markdown support","permalink":"/docs/1.0.0/markdown-support"}}');var r=t(74848),c=t(28453);const n={id:"keyboard-shortcuts",title:"Keyboard shortcuts",original_id:"keyboard-shortcuts"},l=void 0,i={},x=[];function h(d){const e={a:"a",blockquote:"blockquote",code:"code",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,c.R)(),...d.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(e.p,{children:"Here are all of the keyboard shortcuts supported by the editor. Please bear in mind shortcuts may not be available if the corresponding action isn't enabled in the current editor."}),"\n",(0,r.jsxs)(e.blockquote,{children:["\n",(0,r.jsxs)(e.p,{children:["You can try all of those shortcuts on our ",(0,r.jsx)(e.a,{href:"/examples#all",children:"Examples"})," page."]}),"\n"]}),"\n",(0,r.jsxs)(e.table,{children:[(0,r.jsx)(e.thead,{children:(0,r.jsxs)(e.tr,{children:[(0,r.jsx)(e.th,{children:"Function"}),(0,r.jsx)(e.th,{children:"Shortcut"}),(0,r.jsx)(e.th,{children:"Shortcut (macOS)"}),(0,r.jsx)(e.th,{children:"Markdown"})]})}),(0,r.jsxs)(e.tbody,{children:[(0,r.jsxs)(e.tr,{children:[(0,r.jsx)(e.td,{children:(0,r.jsx)(e.strong,{children:"Common actions"})}),(0,r.jsx)(e.td,{}),(0,r.jsx)(e.td,{}),(0,r.jsx)(e.td,{})]}),(0,r.jsxs)(e.tr,{children:[(0,r.jsx)(e.td,{children:"Copy"}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"Ctrl + C"})}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"\u2318 + C"})}),(0,r.jsx)(e.td,{})]}),(0,r.jsxs)(e.tr,{children:[(0,r.jsx)(e.td,{children:"Cut"}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"Ctrl + X"})}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"\u2318 + X"})}),(0,r.jsx)(e.td,{})]}),(0,r.jsxs)(e.tr,{children:[(0,r.jsx)(e.td,{children:"Paste"}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"Ctrl + V"})}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"\u2318 + V"})}),(0,r.jsx)(e.td,{})]}),(0,r.jsxs)(e.tr,{children:[(0,r.jsx)(e.td,{children:"Paste without formatting"}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"Ctrl + \u21e7 + V"})}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"\u2318 + \u21e7 + V"})}),(0,r.jsx)(e.td,{})]}),(0,r.jsxs)(e.tr,{children:[(0,r.jsx)(e.td,{children:"Undo"}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"Ctrl + Z"})}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"\u2318 + Z"})}),(0,r.jsx)(e.td,{})]}),(0,r.jsxs)(e.tr,{children:[(0,r.jsx)(e.td,{children:"Redo"}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"Ctrl + \u21e7 + Z"})}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"\u2318 + \u21e7 + Z"})}),(0,r.jsx)(e.td,{})]}),(0,r.jsxs)(e.tr,{children:[(0,r.jsx)(e.td,{children:"Insert or edit link"}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"Ctrl + K"})}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"\u2318 + K"})}),(0,r.jsx)(e.td,{})]}),(0,r.jsxs)(e.tr,{children:[(0,r.jsx)(e.td,{children:"Open link"}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"Alt + \u21b5"})}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"\u2325 + \u21b5"})}),(0,r.jsx)(e.td,{})]}),(0,r.jsxs)(e.tr,{children:[(0,r.jsx)(e.td,{children:"Insert horizontal rule"}),(0,r.jsx)(e.td,{}),(0,r.jsx)(e.td,{}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"---"})})]}),(0,r.jsxs)(e.tr,{children:[(0,r.jsx)(e.td,{children:(0,r.jsx)(e.strong,{children:"Text formatting (if enabled)"})}),(0,r.jsx)(e.td,{}),(0,r.jsx)(e.td,{}),(0,r.jsx)(e.td,{})]}),(0,r.jsxs)(e.tr,{children:[(0,r.jsx)(e.td,{children:"Bold"}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"Ctrl + B"})}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"\u2318 + B"})}),(0,r.jsx)(e.td,{})]}),(0,r.jsxs)(e.tr,{children:[(0,r.jsx)(e.td,{children:"Italic"}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"Ctrl + I"})}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"\u2318 + I"})}),(0,r.jsx)(e.td,{})]}),(0,r.jsxs)(e.tr,{children:[(0,r.jsx)(e.td,{children:"Underline"}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"Ctrl + U"})}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"\u2318 + U"})}),(0,r.jsx)(e.td,{})]}),(0,r.jsxs)(e.tr,{children:[(0,r.jsx)(e.td,{children:"Monospace (code)"}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"Ctrl + J"})}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"\u2318 + J"})}),(0,r.jsx)(e.td,{})]}),(0,r.jsxs)(e.tr,{children:[(0,r.jsx)(e.td,{children:"Strikethrough"}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"Ctrl + \u21e7 + X"})}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"\u2318 + \u21e7 + X"})}),(0,r.jsx)(e.td,{})]}),(0,r.jsxs)(e.tr,{children:[(0,r.jsx)(e.td,{children:"Superscript"}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"Ctrl + ."})}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"\u2318 + ."})}),(0,r.jsx)(e.td,{})]}),(0,r.jsxs)(e.tr,{children:[(0,r.jsx)(e.td,{children:"Subscript"}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"Ctrl + ,"})}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"\u2318 + ,"})}),(0,r.jsx)(e.td,{})]}),(0,r.jsxs)(e.tr,{children:[(0,r.jsx)(e.td,{children:(0,r.jsx)(e.strong,{children:"Paragraph formatting (if enabled)"})}),(0,r.jsx)(e.td,{}),(0,r.jsx)(e.td,{}),(0,r.jsx)(e.td,{})]}),(0,r.jsxs)(e.tr,{children:[(0,r.jsx)(e.td,{children:"Increase list indentation"}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"\u21b9"})}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"\u21b9"})}),(0,r.jsx)(e.td,{})]}),(0,r.jsxs)(e.tr,{children:[(0,r.jsx)(e.td,{children:"Decrease list indentation"}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"\u21e7 + \u21b9"})}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"\u21e7 + \u21b9"})}),(0,r.jsx)(e.td,{})]}),(0,r.jsxs)(e.tr,{children:[(0,r.jsx)(e.td,{children:"Apply normal text style"}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"Ctrl + Alt + 0"})}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"\u2318 + \u2325 + 0"})}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"\u232b"})})]}),(0,r.jsxs)(e.tr,{children:[(0,r.jsx)(e.td,{children:"Apply heading style [1-6]"}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"Ctrl + Alt + [1-6]"})}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"\u2318 + \u2325 + [1-6]"})}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"##"})})]}),(0,r.jsxs)(e.tr,{children:[(0,r.jsx)(e.td,{children:"Numbered list"}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"Ctrl + \u21e7 + 7"})}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"\u2318 + \u21e7 + 7"})}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"1."})})]}),(0,r.jsxs)(e.tr,{children:[(0,r.jsx)(e.td,{children:"Bulleted list"}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"Ctrl + \u21e7 + 8"})}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"\u2318 + \u21e7 + 8"})}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"-"})})]}),(0,r.jsxs)(e.tr,{children:[(0,r.jsx)(e.td,{children:"Blockquote"}),(0,r.jsx)(e.td,{}),(0,r.jsx)(e.td,{}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"-->"})})]}),(0,r.jsxs)(e.tr,{children:[(0,r.jsx)(e.td,{children:"Code block"}),(0,r.jsx)(e.td,{}),(0,r.jsx)(e.td,{}),(0,r.jsx)(e.td,{children:"```````````"})]}),(0,r.jsxs)(e.tr,{children:[(0,r.jsx)(e.td,{children:"Go to new line"}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"\u21b5"})}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"\u21b5"})}),(0,r.jsx)(e.td,{})]}),(0,r.jsxs)(e.tr,{children:[(0,r.jsx)(e.td,{children:"Insert soft new line"}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"\u21e7 + \u21b5"})}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"\u21e7 + \u21b5"})}),(0,r.jsx)(e.td,{})]}),(0,r.jsxs)(e.tr,{children:[(0,r.jsx)(e.td,{children:"Insert soft new line"}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"Ctrl + \u21b5"})}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"\u2318 + \u21b5"})}),(0,r.jsx)(e.td,{})]}),(0,r.jsxs)(e.tr,{children:[(0,r.jsx)(e.td,{children:(0,r.jsx)(e.strong,{children:"Text selection with keyboard"})}),(0,r.jsx)(e.td,{}),(0,r.jsx)(e.td,{}),(0,r.jsx)(e.td,{})]}),(0,r.jsxs)(e.tr,{children:[(0,r.jsx)(e.td,{children:"Select all"}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"Ctrl + A"})}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"\u2318 + A"})}),(0,r.jsx)(e.td,{})]}),(0,r.jsxs)(e.tr,{children:[(0,r.jsx)(e.td,{children:"Extend selection one character"}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"\u21e7 + \u2190 or \u2192"})}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"\u21e7 + \u2190 or \u2192"})}),(0,r.jsx)(e.td,{})]}),(0,r.jsxs)(e.tr,{children:[(0,r.jsx)(e.td,{children:"Extend selection one line"}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"\u21e7 + \u2191 or \u2193"})}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"\u21e7 + \u2191 or \u2193"})}),(0,r.jsx)(e.td,{})]}),(0,r.jsxs)(e.tr,{children:[(0,r.jsx)(e.td,{children:"Extend selection one word"}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"Alt + \u21e7 + \u2190 or \u2192"})}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"\u2325 + \u21e7 + \u2190 or \u2192"})}),(0,r.jsx)(e.td,{})]}),(0,r.jsxs)(e.tr,{children:[(0,r.jsx)(e.td,{children:"Extend selection to the beginning of the line"}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"Ctrl + \u21e7 + \u2190"})}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"\u2318 + \u21e7 + \u2190"})}),(0,r.jsx)(e.td,{})]}),(0,r.jsxs)(e.tr,{children:[(0,r.jsx)(e.td,{children:"Extend selection to the end of the line"}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"Ctrl + \u21e7 + \u2192"})}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"\u2318 + \u21e7 + \u2192"})}),(0,r.jsx)(e.td,{})]}),(0,r.jsxs)(e.tr,{children:[(0,r.jsx)(e.td,{children:"Extend selection to the beginning of the document"}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"\u21e7 + \u21f1"})}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"\u21e7 + \u21f1"})}),(0,r.jsx)(e.td,{})]}),(0,r.jsxs)(e.tr,{children:[(0,r.jsx)(e.td,{children:"Extend selection to the end of the document"}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"\u21e7 + \u21f2"})}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"\u21e7 + \u21f2"})}),(0,r.jsx)(e.td,{})]}),(0,r.jsxs)(e.tr,{children:[(0,r.jsx)(e.td,{children:(0,r.jsx)(e.strong,{children:"Text selection with mouse"})}),(0,r.jsx)(e.td,{}),(0,r.jsx)(e.td,{}),(0,r.jsx)(e.td,{})]}),(0,r.jsxs)(e.tr,{children:[(0,r.jsx)(e.td,{children:"Select word"}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"Double-click"})}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"Double-click"})}),(0,r.jsx)(e.td,{})]}),(0,r.jsxs)(e.tr,{children:[(0,r.jsx)(e.td,{children:"Extend selection one word at a time"}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"Double-click + Drag"})}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"Double-click + Drag"})}),(0,r.jsx)(e.td,{})]}),(0,r.jsxs)(e.tr,{children:[(0,r.jsx)(e.td,{children:"Select paragraph"}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"Triple-click"})}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"Triple-click"})}),(0,r.jsx)(e.td,{})]}),(0,r.jsxs)(e.tr,{children:[(0,r.jsx)(e.td,{children:"Extend selection one paragraph at a time"}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"Triple-click + Drag"})}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"Triple-click + Drag"})}),(0,r.jsx)(e.td,{})]})]})]})]})}function j(d={}){const{wrapper:e}={...(0,c.R)(),...d.components};return e?(0,r.jsx)(e,{...d,children:(0,r.jsx)(h,{...d})}):h(d)}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.