and avoid add/remove keymap on every updateActiveState Signed-off-by: Max Wu <jackymaxj@gmail.com>
port of the code from: https://github.com/susisu/mte-demo/blob/master/src/main.js Signed-off-by: Max Wu <jackymaxj@gmail.com>