Commit de4a8b88 authored by Henri MEDOT's avatar Henri MEDOT
Browse files

Issue #1991076 by anrikun: Select link from autocomplete list using keyboard...

Issue #1991076 by anrikun: Select link from autocomplete list using keyboard arrows and return fails in firefox and chrome
parent 15054093
......@@ -34,21 +34,19 @@
// Override Drupal.jsAC.prototype.onkeydown().
// @see https://drupal.org/node/1991076
if (parseInt(CKEDITOR.version) >= 4) {
var _onkeydown = jsAC.onkeydown;
jsAC.onkeydown = function(input, e) {
if (!e) {
e = window.event;
}
switch (e.keyCode) {
case 13: // Enter.
this.hidePopup(e.keyCode);
return true;
default: // All other keys.
return _onkeydown.call(this, input, e);
}
};
}
var _onkeydown = jsAC.onkeydown;
jsAC.onkeydown = function(input, e) {
if (!e) {
e = window.event;
}
switch (e.keyCode) {
case 13: // Enter.
this.hidePopup(e.keyCode);
return true;
default: // All other keys.
return _onkeydown.call(this, input, e);
}
};
};
var extractPath = function(value) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment