You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-10 09:22:25 +03:00
allow tab-complete to start from a blank text-input. this lets us autocomplete based on the most recently active users in a room, even if we can't spell the first char of their name. it does break tab-complete for accessibility, but that was broken anyway.
This commit is contained in:
@@ -24,10 +24,10 @@ const KEY_WINDOWS = 91;
|
|||||||
//
|
//
|
||||||
// Capturing group containing the start
|
// Capturing group containing the start
|
||||||
// of line or a whitespace char
|
// of line or a whitespace char
|
||||||
// \_______________ __________Capturing group of 1 or more non-whitespace chars
|
// \_______________ __________Capturing group of 0 or more non-whitespace chars
|
||||||
// _|__ _|_ followed by the end of line
|
// _|__ _|_ followed by the end of line
|
||||||
// / \/ \
|
// / \/ \
|
||||||
const MATCH_REGEX = /(^|\s)(\S+)$/;
|
const MATCH_REGEX = /(^|\s)(\S*)$/;
|
||||||
|
|
||||||
class TabComplete {
|
class TabComplete {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user