File tree Expand file tree Collapse file tree 1 file changed +0
-24
lines changed Expand file tree Collapse file tree 1 file changed +0
-24
lines changed Original file line number Diff line number Diff line change @@ -245,30 +245,6 @@ export class SuggestionMenuProseMirrorPlugin<
245
245
} ,
246
246
247
247
props : {
248
- handleKeyDown ( view , event ) {
249
- const suggestionPluginState : SuggestionPluginState = (
250
- this as Plugin
251
- ) . getState ( view . state ) ;
252
-
253
- if (
254
- triggerCharacters . includes ( event . key ) &&
255
- suggestionPluginState === undefined
256
- ) {
257
- event . preventDefault ( ) ;
258
-
259
- view . dispatch (
260
- view . state . tr
261
- . insertText ( event . key )
262
- . scrollIntoView ( )
263
- . setMeta ( suggestionMenuPluginKey , {
264
- triggerCharacter : event . key ,
265
- } )
266
- ) ;
267
-
268
- return true ;
269
- }
270
- return false ;
271
- } ,
272
248
handleTextInput ( view , _from , _to , text ) {
273
249
const suggestionPluginState : SuggestionPluginState = (
274
250
this as Plugin
You can’t perform that action at this time.
0 commit comments