diff --git a/site/examples/images.tsx b/site/examples/images.tsx
index b4bfa0696..f4dfe2fc5 100644
--- a/site/examples/images.tsx
+++ b/site/examples/images.tsx
@@ -1,6 +1,7 @@
import React, { useMemo } from 'react'
import imageExtensions from 'image-extensions'
import isUrl from 'is-url'
+import isHotkey from 'is-hotkey'
import { Transforms, createEditor, Descendant } from 'slate'
import {
Slate,
@@ -29,6 +30,12 @@ const ImagesExample = () => {
{
+ if (isHotkey('mod+a', event)) {
+ event.preventDefault()
+ Transforms.select(editor, [])
+ }
+ }}
renderElement={props => }
placeholder="Enter some text..."
/>