mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-12 11:45:38 +08:00
Added ESC keep to upload textbox to cancel.
This commit is contained in:
parent
defabcc772
commit
5fff038965
@ -269,7 +269,10 @@ define([
|
||||
.attr('value', name)
|
||||
.attr('size', '30')
|
||||
.attr('type', 'text')
|
||||
.keyup(function(event){if(event.keyCode == 13){item.find('.upload_button').click();}})
|
||||
.keyup(function(event){
|
||||
if(event.keyCode == 13){item.find('.upload_button').click();}
|
||||
else if(event.keyCode == 27){item.remove();}
|
||||
})
|
||||
);
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user