Skip to content

Commit

Permalink
fixes #432
Browse files Browse the repository at this point in the history
  • Loading branch information
jhchen committed Aug 4, 2015
1 parent 9b2e524 commit c5d2ede
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/modules/keyboard.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ class Keyboard
)
_.each(['bold', 'italic', 'underline'], (format) =>
this.addHotkey(Keyboard.hotkeys[format.toUpperCase()], (range) =>
this.toggleFormat(range, format)
if (@quill.options.formats.indexOf(format) > -1)
this.toggleFormat(range, format)
return false
)
)
Expand Down

1 comment on commit c5d2ede

@rlivsey
Copy link

@rlivsey rlivsey commented on c5d2ede Aug 4, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Please sign in to comment.