Hammerspoon/hammerspoon

windowHints hotkey modal clashes with user defined modals

オープン

#606 opened on 2015/10/14

 (2 件のコメント) (0 件のリアクション) (0 人の担当者)Objective-C (688 件のフォーク)batch import
bughelp wanted

Repository metrics

Stars
 (15,415 個のスター)
PR merge metrics
 (PR metrics pending)

説明

It seems like windowHints implementation is based on modal hotkeys, and it defines a global variable named "k" for the modal. That global variable was clashing with my own modal variable (also named "k") causing weird behavior. Changing my modal variable name fixed it.

I'm not experienced enough with hammerspoon or lua to fix this myself. Is it possible to use a local variable in the windowHints module? Maybe the windowHints variable should have a less common name?

I believe this is the line causing trouble.

Thanks!

コントリビューターガイド