Explorar el Código

feat: shortcuts support override pre handlers like delete (#93)

xiamidaxia hace 9 meses
padre
commit
62e53350f1

+ 2 - 1
packages/plugins/shortcuts-plugin/src/shortcuts-contribution.ts

@@ -43,7 +43,8 @@ export class ShortcutsRegistry {
         });
       }
     });
-    this.shortcutsHandlers.push(...handlers);
+    // Insert before for override pre handlers
+    this.shortcutsHandlers.unshift(...handlers);
   }
 
   addHandlersIfNotFound(...handlers: ShortcutsHandler[]): void {