The patch for this includes the patch in #1249982: User list not being updated properly, so you only need to apply this one once reviewed. Otherwise I'll re-roll the patch if necessary.

Right now autocomplete is done with the TAB key, which didn't work with Chromium (on Linux) in my tests, but I made it easy to add an additional keycode. I didn't come up with one that works in Chromium yet, maybe someone else has an idea?

Comments

a.ross’s picture

Status: Active » Needs review
a.ross’s picture

StatusFileSize
new4.42 KB

Argh why do I keep doing that... autocomplete could give "false positive" with that patch, here is a fixed one.

a.ross’s picture

StatusFileSize
new4.47 KB

Alright seems the keyPress event is not fired for the TAB key in some browsers, but the keyDown event is. I have updated the patch to reflect this fact, so it now works with IE and chromium and others.

It should be noted, however, that in the case of IE, it's not possible to find the keyboard cursor position, so I assume that the cursor is at the end. I honestly don't feel like writing an ugly workaround for this one, maybe someone else can do it. The line to do this just for damned IE is ugly enough as it is.

a.ross’s picture

Any news on this?

a.ross’s picture

I'd like to reroll this patch (against 7.x-2.x or GSoC?). I did but I can't test if it works or not, since in that branch user list is not updated at all. I will use this feature in production so it would be nice if someone could have a look at it.