Skip to content

Commit

Permalink
Merge pull request #635 from kevinansfield/fix-linux-delete-word
Browse files Browse the repository at this point in the history
Fixed Ctrl+Backspace word delete on Linux
  • Loading branch information
mixonic committed Oct 19, 2018
2 parents b4c84da + c523c92 commit 28a746d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/editor/event-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ export default class EventManager {
let unit = 'char';
if (key.altKey && Browser.isMac()) {
unit = 'word';
} else if (key.ctrlKey && Browser.isWin()) {
} else if (key.ctrlKey && !Browser.isMac()) {
unit = 'word';
}
editor.performDelete({direction, unit});
Expand Down

0 comments on commit 28a746d

Please sign in to comment.