Finalize current keymapping work:
- catchup with latest changes to pilot/keys.js - the textinput adds a event.addCommandKeyEvent(...) to the input - the onTextInput and onCommandKey event sent by the textinput are forwareded to the edtior which then forwards the input to the keybinding, which handles the input based on the current inputMode. - the current inputMode can get changed by setting the setting "inputMode". Currently there are the modes "vim" and "emacs". If the inputMode doesn't match, the "default" mode is used.
This commit is contained in:
parent
b16bc6abc4
commit
3ebd2865ea
6 changed files with 95 additions and 94 deletions
|
|
@ -253,8 +253,8 @@ canon.addCommand({
|
|||
canon.addCommand({
|
||||
name: "inserttext",
|
||||
exec: function(env, args, request) {
|
||||
env.editor.onTextInput(lang.stringRepeat(args.text || "",
|
||||
args.times || 1));
|
||||
env.editor.insert(lang.stringRepeat(args.text || "",
|
||||
args.times || 1));
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue