Skip to content

Commit

Permalink
Merge pull request summernote#1722 from ptcong/ptcong-patch-1
Browse files Browse the repository at this point in the history
Fix tabindex, not focus to textarea on Firefox, Mac OS
  • Loading branch information
hackerwins committed Apr 10, 2016
2 parents b5394b8 + a7bd234 commit 24f20fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/js/base/module/Clipboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ define([
// - IE11 and Firefox: CTRL+v hook
// - Webkit: event.clipboardData
if (this.needKeydownHook()) {
this.$paste = $('<div />').attr('contenteditable', true).css({
this.$paste = $('<div tabindex="-1" />').attr('contenteditable', true).css({
position: 'absolute',
left: -100000,
opacity: 0
Expand Down
2 changes: 1 addition & 1 deletion src/js/bs3/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ define([
var airEditable = renderer.create('<div class="note-editable" contentEditable="true"/>');

var buttonGroup = renderer.create('<div class="note-btn-group btn-group">');
var button = renderer.create('<button type="button" class="note-btn btn btn-default btn-sm">', function ($node, options) {
var button = renderer.create('<button type="button" class="note-btn btn btn-default btn-sm" tabindex="-1">', function ($node, options) {
if (options && options.tooltip) {
$node.attr({
title: options.tooltip
Expand Down

0 comments on commit 24f20fe

Please sign in to comment.