Skip to content

Commit

Permalink
Merge pull request #439 from kmoe/keyboard-accessibility
Browse files Browse the repository at this point in the history
Prevent tabbing into paste container
  • Loading branch information
jhchen committed Aug 12, 2015
2 parents 47ee993 + 3362eaa commit 03c9416
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/modules/paste-manager.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class PasteManager
constructor: (@quill, options) ->
@container = @quill.addContainer('ql-paste-manager')
@container.setAttribute('contenteditable', true)
@container.setAttribute('tabindex', '-1')
dom(@quill.root).on('paste', _.bind(this._paste, this))
@options = _.defaults(options, PasteManager.DEFAULTS)
@options.onConvert ?= this._onConvert;
Expand Down

0 comments on commit 03c9416

Please sign in to comment.