summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--misc/autocomplete.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/misc/autocomplete.js b/misc/autocomplete.js
index 267d4b79b..8f7ac6011 100644
--- a/misc/autocomplete.js
+++ b/misc/autocomplete.js
@@ -99,10 +99,12 @@ Drupal.jsAC.prototype.onkeyup = function (input, e) {
return true;
default: // All other keys.
- if (input.value.length > 0)
+ if (input.value.length > 0 && !input.readOnly) {
this.populatePopup();
- else
+ }
+ else {
this.hidePopup(e.keyCode);
+ }
return true;
}
};