mapの";"

hints使用のため ";"を押した後 skkime を かなモードから asciiモードに切り替えると抜けてしまうのでいじってみた。

変更点は、onChange に arg のチェック追加です。


あと、";"って の 補間実装されていたんですね。

(function(){
  let map= mappings.get(modes.NORMAL, ";");
  if(!map) return;
  map.action = function (count) {
      extendedhintCount = count;
      commandline.input(";", null, {
      promptHighlight: "Normal", 
      completer: function (context) {
        context.compare = (function () 0);
        context.completions = [[k, v.prompt] for ([k, v] in Iterator(liberator.eval("hintModes",hints.addMode)))];
      }, 
      onChange: function (arg) {
        arg&&modes.pop();
      }, 
      onCancel: function (arg) {
        arg && setTimeout((function () hints.show(arg)), 0);
      }
    });
  };
})();