@@ -47,7 +47,7 @@ site.use(psyche());
4747```
4848
4949The indexer can be configured by providing a ` LumeConfig ` object
50- as the first argument of the ` psyche() ` call (see [ types.d.ts] ( ./types.d.ts#L133 ) ).
50+ as the first argument of the ` psyche() ` call (see [ types.d.ts] ( ./types.d.ts#L131 ) ).
5151
5252By default:
5353
@@ -79,7 +79,7 @@ import psyche from 'https://deno.land/x/psyche/client/psyche.min.mjs';
7979
8080The ` psyche ` default export is a function that when provided with
8181a ` ClientConfig ` object (see [ types.d.ts] ( ./types.d.ts#L31 ) ) will
82- return a ` ClientInstance ` (see [ types.d.ts] ( ./types.d.ts#L109 ) ).
82+ return a ` ClientInstance ` (see [ types.d.ts] ( ./types.d.ts#L107 ) ).
8383
8484Calling ` .register() ` on a client instance will insert the component
8585into the document and listen for hotkey presses. The component can
@@ -100,19 +100,18 @@ searchInstance.open();
100100
101101To add a hotkey to the list in the search modal,
102102add it to the ` hotkeys ` array of psyche's ` ClientConfig `
103- object (see [ types.d.ts] ( ./types.d.ts#L31 ) ). The special
104- ` {{platformModifier}} ` can be used within the ` kbd ` property
105- of a hotkey for platform-dependent hotkeys: equivalent
106- to the <kbd >Command (⌘) </kbd > key on MacOS or the <kbd >CTRL</kbd >
103+ object (see [ types.d.ts] ( ./types.d.ts#L31 ) ).
104+
105+ For platform-dependent hotkeys, the named export ` platformModifier `
106+ will be equivalent to the <kbd >⌘ </kbd > key on MacOS or the <kbd >CTRL</kbd >
107107key on other platforms.
108108
109- To handle hotkeys, provide a ` ClientHotkey ` object (see [ types.d.ts] ( ./types.d.ts#L126 ) )
109+ To handle hotkeys, provide a ` ClientHotkey ` object (see [ types.d.ts] ( ./types.d.ts#L124 ) )
110110to the named export ` registerHotkey ` . This is a ` KeyboardEvent ` partial with a few
111111additional properties:
112112
113113- the ` platformModifier ` property is equivalent to ` metaKey ` on MacOS
114- or ` ctrlKey ` on other platforms (for use with the ` {{platformModifier}} `
115- described above).
114+ or ` ctrlKey ` on other platforms.
116115- the ` onkeydown ` property will be called when the key combination is pressed
117116 down, passed the triggered ` KeyboardEvent ` as its first argument.
118117- the ` onkeyup ` property will be called when the key combination is released,
0 commit comments