Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
The listenTo() method will handle priority itself.
Browse files Browse the repository at this point in the history
  • Loading branch information
Reinmar committed Aug 21, 2017
1 parent 3fba8e4 commit a5018b6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/keystrokehandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

import DomEmitterMixin from './dom/emittermixin';
import { getCode, parseKeystroke } from './keyboard';
import priorities from './priorities';

/**
* Keystroke handler registers keystrokes so the callbacks associated
Expand Down Expand Up @@ -74,7 +73,7 @@ export default class KeystrokeHandler {
*/
set( keystroke, callback, options = {} ) {
const keyCode = parseKeystroke( keystroke );
const priority = priorities.get( options.priority );
const priority = options.priority;

// Execute the passed callback on KeystrokeHandler#_keydown.
// TODO: https://github.com/ckeditor/ckeditor5-utils/issues/144
Expand Down

0 comments on commit a5018b6

Please sign in to comment.