以下のフックポイントをKeySnailに追加するプラグインを書きました。
http://github.com/hogelog/keysnail-plugins/blob/master/hook-menu-popup.ks.js
MainMenuPopupはメニューバーのメニュー、ContextMenuPopupは右クリックメニューへのフックです。これらのフックは他のフックポイントなどと同様にhook.setHook、hook.addToHookなどから利用できます。
私は以下のようにメニュー表示時はkeysnailを一時的に停止するために使っています。
function stopKeySnail (ev) { key.suspended = true; } function restartKeySnail (ev) { key.suspended = false; } hook.setHook('MenuPopupShowing', stopKeySnail); hook.setHook('MenuPopupHiding', restartKeySnail);
というかこのために作ったのですけども。
EventTarget.addEventListener() - Web API インターフェイス | MDN
オブジェクトのプロパティを渡すとthisがaddEventListenerを実行した時のそれになる。のでそれを回避しようと無名関数にくるんで渡すと無名関数がアクセスできる変数全てを保持しておく必要があるからメモリ使用量が増大する、という意味だろうか。
とりあえず普通の関数にしておいてついでにremoveEventListenerしておくようにすれば問題ないのだろうけど。いまいち意味がわからない。EventListenerに起因する不具合はよく聞くような気がするのでこの辺の仕様を把握しておきたい。
https://www.cialissansordonnancefr24.com/cialis-ou-produit-naturel/
If your shop has high risk stock you can reduce the cost of your premiums by having adequate security in place. This includes an insurance company approved burglar and fire alarm, window grills, shutters and bars, CCTV and sprinklers. Many shop insurers will only offer stock cover if the minimum levels of security are in place for all shops, regardless of the stock contents held. A lot of insurers may offer further large discounts to the premium if the shop owner lives on or above the premises and is there at night.
Shops by their very nature deal with members of the public and a good insurance policy will usually contain liability cover as standard. This should include Public Liability of up to ?2,000,000 for any one claim by a member of the public who may suffer loss or injury visiting the shop.
If you employ staff all policies will offer Employers Liability cover of up to ?10,000,000 one event and because shops sell goods and services, Products Liability cover of ?2,000,000 for any one period of insurance.
<a href=https://www.cialissansordonnancefr24.com/pharmacie-discount-cialis/>https://www.cialissansordonnancefr24.com/pharmacie-discount-cialis/</a>