Permalink
Browse files

MDL-34139 filemanager select-file dialogue should update file on Enter

  • Loading branch information...
1 parent bd75b67 commit 2eb66f3500bf55c31003c2fc9af137c9ab337407 @marinaglancy marinaglancy committed with Sam Hemelryk Jul 2, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/form/filemanager.js
View
@@ -736,6 +736,12 @@ M.form_filemanager.init = function(Y, options) {
e.preventDefault();
this.update_file();
}, this);
+ selectnode.all('form').on('keydown', function(e) {
+ if (e.keyCode == 13) {
+ e.preventDefault();
+ this.update_file();
+ }
+ }, this);
selectnode.one('.fp-file-download').on('click', function(e) {
e.preventDefault();
if (this.selectui.fileinfo.type != 'folder') {

0 comments on commit 2eb66f3

Please sign in to comment.