Make Tab behave a bit more prediably in textboxes

This commit is contained in:
Guangcong Luo
2013-05-19 02:40:54 -05:00
parent 8c8af8bf18
commit 640eeef4e0

View File

@@ -169,7 +169,7 @@
// There needs to be non-whitespace to the left of the cursor.
var m = /^(.*?)([^ ]*)$/.exec(text.substr(0, idx));
if (!m) return false;
if (!m) return true;
this.tabComplete.prefix = m[1];
var idprefix = toId(m[2]);