mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
Fix keybinding in upload modal
This commit is contained in:
parent
3de5ca75a6
commit
ff0a570034
@ -65,12 +65,13 @@ define([
|
||||
switch (e.which) {
|
||||
case 27: // cancel
|
||||
if (typeof(no) === 'function') { no(e); }
|
||||
$(el || window).off('keydown', handler);
|
||||
break;
|
||||
case 13: // enter
|
||||
if (typeof(yes) === 'function') { yes(e); }
|
||||
$(el || window).off('keydown', handler);
|
||||
break;
|
||||
}
|
||||
$(el || window).off('keydown', handler);
|
||||
};
|
||||
|
||||
$(el || window).keydown(handler);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user