blob: 7f4d300800a6e99ba8f88bc71caf2109f484fd67 [file] [log] [blame]
"use strict";
define(['menu/prefix'], function (prefixClass) {
return {
/**
* Create prefix object for the hint helper menu.
*/
create : function (params) {
return Object.create(prefixClass).
upgradeTo(this)._init(params);
},
/**
* Override the prefix action.
*/
onclick : function (e) {
const m = this.menu();
const value = this.value();
const h = m.hint();
h.inputField().insert(value);
h.active(null);
m.hide();
// h.unshow();
e.halt();
}
};
});