I'm really not impressed with this scriptaculous
auto-completion for the categories. It doesn't work
intuitively in many cases. When I hold down the down arrow,
I'd expect it to continue advancing down the items
of the list, but instead I have to hit the down arrow
over and over. When I hit Page Down, I'd expect the list
to scroll by a "page" of items, but it just sits there.
When the completion list is open and I hit the up arrow,
the page (note: in firefox) weirdly jumps up; then I hit
the down arrow again, and it jumps down.
Is there anything better?
I also noticed this in comp/media/js/lib.js :
Object.extend(Ajax.Autocompleter.prototype, {
onKeyPress: function(event) {
var originallyActive = this.active;
this._onKeyPress(event);
// Catch <enter> keypresses
if (event.keyCode == 13) {
// Workaround for a bug in for Safari 2.0.3. Already fixed in WebKit
as of 2006-06-29.
// This makes the selection go to the end.
if(navigator.appVersion.indexOf('AppleWebKit') < 3 ) {
var element = Event.element(event);
element.setSelectionRange(element.value.length,
element.value.length);
return false;
}
// Don't submit the form when you click enter!
Event.stop(event);
if (!originallyActive && this.options.onEnter) {
this.options.onEnter(this.element);
}
return false;
}
return true;
},
I think that can be replaced by passing { tokens: ['\n'] }
to new Ajax.Autocompleter. (?)
auto-completion for the categories. It doesn't work
intuitively in many cases. When I hold down the down arrow,
I'd expect it to continue advancing down the items
of the list, but instead I have to hit the down arrow
over and over. When I hit Page Down, I'd expect the list
to scroll by a "page" of items, but it just sits there.
When the completion list is open and I hit the up arrow,
the page (note: in firefox) weirdly jumps up; then I hit
the down arrow again, and it jumps down.
Is there anything better?
I also noticed this in comp/media/js/lib.js :
Object.extend(Ajax.Autocompleter.prototype, {
onKeyPress: function(event) {
var originallyActive = this.active;
this._onKeyPress(event);
// Catch <enter> keypresses
if (event.keyCode == 13) {
// Workaround for a bug in for Safari 2.0.3. Already fixed in WebKit
as of 2006-06-29.
// This makes the selection go to the end.
if(navigator.appVersion.indexOf('AppleWebKit') < 3 ) {
var element = Event.element(event);
element.setSelectionRange(element.value.length,
element.value.length);
return false;
}
// Don't submit the form when you click enter!
Event.stop(event);
if (!originallyActive && this.options.onEnter) {
this.options.onEnter(this.element);
}
return false;
}
return true;
},
I think that can be replaced by passing { tokens: ['\n'] }
to new Ajax.Autocompleter. (?)