Skip to content

Commit

Permalink
Fixes issue jupyter#3939, jupyter#3958
Browse files Browse the repository at this point in the history
  • Loading branch information
fabihaahmed committed Jun 20, 2019
1 parent fe8156b commit b02c05c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion notebook/static/notebook/js/codecell.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ define([
cell: this,
notebook: this.notebook});
inner_cell.append(this.celltoolbar.element);
var input_area = $('<div/>').addClass('input_area');
var input_area = $('<div/>').addClass('input_area').attr("aria-label", "Edit code here");
this.code_mirror = new CodeMirror(input_area.get(0), this._options.cm_config);
// In case of bugs that put the keyboard manager into an inconsistent state,
// ensure KM is enabled when CodeMirror is focused:
Expand Down
12 changes: 6 additions & 6 deletions notebook/static/notebook/js/notebook.js
Original file line number Diff line number Diff line change
Expand Up @@ -1216,7 +1216,7 @@ define([
// This will put all the deleted cells back in one location, rather than
// where they came from. It will do until we have proper undo support.
undelete_backup.index = cursor_ix_after;
$('#undelete_cell').removeClass('disabled');
$('#undelete_cell').removeClass('disabled').removeAttr("aria-label");

this.undelete_backup_stack.push(undelete_backup);
this.set_dirty(true);
Expand Down Expand Up @@ -1622,13 +1622,13 @@ define([
if (!this.paste_enabled) {
$('#paste_cell_replace').removeClass('disabled')
.on('click', function () {that.keyboard_manager.actions.call(
'jupyter-notebook:paste-cell-replace');});
'jupyter-notebook:paste-cell-replace');}).removeAttr("aria-label");
$('#paste_cell_above').removeClass('disabled')
.on('click', function () {that.keyboard_manager.actions.call(
'jupyter-notebook:paste-cell-above');});
'jupyter-notebook:paste-cell-above');}).removeAttr("aria-label");
$('#paste_cell_below').removeClass('disabled')
.on('click', function () {that.keyboard_manager.actions.call(
'jupyter-notebook:paste-cell-below');});
'jupyter-notebook:paste-cell-below');}).removeAttr("aria-label");
this.paste_enabled = true;
}
};
Expand Down Expand Up @@ -1938,7 +1938,7 @@ define([
*/
Notebook.prototype.enable_attachments_paste = function () {
if (!this.paste_attachments_enabled) {
$('#paste_cell_attachments').removeClass('disabled');
$('#paste_cell_attachments').removeClass('disabled').removeAttr("aria-label");
this.paste_attachments_enabled = true;
}
};
Expand All @@ -1948,7 +1948,7 @@ define([
*/
Notebook.prototype.set_insert_image_enabled = function(enabled) {
if (enabled) {
$('#insert_image').removeClass('disabled');
$('#insert_image').removeClass('disabled').removeAttr("aria-label");
} else {
$('#insert_image').addClass('disabled');
}
Expand Down
2 changes: 1 addition & 1 deletion notebook/static/notebook/js/textcell.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ define([
cell: this,
notebook: this.notebook});
inner_cell.append(this.celltoolbar.element);
var input_area = $('<div/>').addClass('input_area');
var input_area = $('<div/>').addClass('input_area').attr("aria-label", "Edit Markup Text here");;
this.code_mirror = new CodeMirror(input_area.get(0), this._options.cm_config);
// In case of bugs that put the keyboard manager into an inconsistent state,
// ensure KM is enabled when CodeMirror is focused:
Expand Down

0 comments on commit b02c05c

Please sign in to comment.