ayarin0x0 / serval

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Special input fns.

ayarin0x0 opened this issue · comments

Like this, also with 'tab' 'shift + tab' '()' '[]' '{}' and so on.

Assign field 'type' to fn.

e.g.

this.type = 'input'
this.name = 'auto-bracket'

When execute fn, it use 'name' as key.
When push into Tracker, it use 'input' as key.
So, the Tracker can merge them as one type naturally and can also save space.