From bdb89a7d869b00510d3c02533160abdca07faa91 2011-08-19 03:16:33 From: Brian E. Granger Date: 2011-08-19 03:16:33 Subject: [PATCH] Better tabindex support. --- diff --git a/IPython/frontend/html/notebook/static/js/codecell.js b/IPython/frontend/html/notebook/static/js/codecell.js index 42bbb45..70e09f7 100644 --- a/IPython/frontend/html/notebook/static/js/codecell.js +++ b/IPython/frontend/html/notebook/static/js/codecell.js @@ -29,6 +29,7 @@ var IPython = (function (IPython) { CodeCell.prototype.create_element = function () { var cell = $('
').addClass('cell border-box-sizing code_cell vbox'); + cell.attr('tabindex','2'); var input = $('
').addClass('input hbox'); input.append($('
').addClass('prompt input_prompt')); var input_area = $('
').addClass('input_area box-flex1'); diff --git a/IPython/frontend/html/notebook/static/js/savewidget.js b/IPython/frontend/html/notebook/static/js/savewidget.js index 7f54d87..853cc96 100644 --- a/IPython/frontend/html/notebook/static/js/savewidget.js +++ b/IPython/frontend/html/notebook/static/js/savewidget.js @@ -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'); }; diff --git a/IPython/frontend/html/notebook/static/js/textcell.js b/IPython/frontend/html/notebook/static/js/textcell.js index 280ceef..535c226 100644 --- a/IPython/frontend/html/notebook/static/js/textcell.js +++ b/IPython/frontend/html/notebook/static/js/textcell.js @@ -27,6 +27,7 @@ var IPython = (function (IPython) { TextCell.prototype.create_element = function () { var cell = $("
").addClass('cell text_cell border-box-sizing'); + cell.attr('tabindex','2'); var input_area = $('
').addClass('text_cell_input'); this.code_mirror = CodeMirror(input_area.get(0), { indentUnit : 4,