Permalink
Browse files

Better tabindex support.

  • Loading branch information...
1 parent cb5364f commit bdb89a7d869b00510d3c02533160abdca07faa91 @ellisonbg ellisonbg committed Aug 19, 2011
@@ -29,6 +29,7 @@ var IPython = (function (IPython) {
CodeCell.prototype.create_element = function () {
var cell = $('<div></div>').addClass('cell border-box-sizing code_cell vbox');
+ cell.attr('tabindex','2');
var input = $('<div></div>').addClass('input hbox');
input.append($('<div/>').addClass('prompt input_prompt'));
var input_area = $('<div/>').addClass('input_area box-flex1');
@@ -30,6 +30,7 @@ var IPython = (function (IPython) {
var left_panel_width = $('div#left_panel').outerWidth();
var left_panel_splitter_width = $('div#left_panel_splitter').outerWidth();
$('span#save_widget').css({marginLeft:left_panel_width+left_panel_splitter_width});
+ $('input#notebook_name').attr('tabindex','1');
};
@@ -27,6 +27,7 @@ var IPython = (function (IPython) {
TextCell.prototype.create_element = function () {
var cell = $("<div>").addClass('cell text_cell border-box-sizing');
+ cell.attr('tabindex','2');
var input_area = $('<div/>').addClass('text_cell_input');
this.code_mirror = CodeMirror(input_area.get(0), {
indentUnit : 4,

0 comments on commit bdb89a7

Please sign in to comment.