johnno1962 / HotReloading

Hot reloading as a Swift Package

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Will the DDHotKey affect the file watch ?

qmkCamel opened this issue · comments

commented

I use the DDHotKey with command + s in HotReloading as a package, but found it will affect the File Watcher, it cannt get the callback when command + s triggered. I didnt figure out how it happed.

Not sure I understand what you're saying. DDHotKey is compiled into the app. It won't work using HotReloading alone which relies on calling the FileSystemEvent api from inside the simulator so your only option is cmd-s.

commented

I forked a HotReloading and add the DDHotKey in it, and set a cmd + s hotkey. But when I trigger the cmd + s, found the file watcher didn`t get a callback, only the hotkey action triggerd.

I'm surprised DDHotKey works inside the simulator. It uses an old "Carbon" api so the chances of it working are very low. I'll have to leave you to work this one out.

commented

I tried it on device. And I will find a way to work it out. Thanks~

commented

The DDHotKey with cmd + s will delay the FSStreamEventCallback about 10 - 15 seconds on device.

I'm not sure I understand what you're up to. How do you mean "on device"? How could it work "on device"? Have you tried using the existing hot key of control-=? instead?