Vous ne pouvez pas sélectionner plus de 25 sujets
Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
123456789101112131415161718192021 |
- import MiddlewareRegistry from '../base/redux/MiddlewareRegistry';
-
- import { OPEN_KEYBOARD_SHORTCUTS_DIALOG } from './actionTypes';
-
- /**
- * Implements the middleware of the feature keyboard-shortcuts.
- *
- * @param {Store} store - The redux store.
- * @returns {Function}
- */
- MiddlewareRegistry.register(_store => next => action => {
- switch (action.type) {
- case OPEN_KEYBOARD_SHORTCUTS_DIALOG:
- if (typeof APP === 'object') {
- APP.keyboardshortcut.openDialog();
- }
- break;
- }
-
- return next(action);
- });
|