Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Will the DDHotKey affect the file watch ? #80

Closed
qmkCamel opened this issue May 15, 2023 · 6 comments
Closed

Will the DDHotKey affect the file watch ? #80

qmkCamel opened this issue May 15, 2023 · 6 comments

Comments

@qmkCamel
Copy link

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.

@johnno1962
Copy link
Owner

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.

@qmkCamel
Copy link
Author

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.

@johnno1962
Copy link
Owner

johnno1962 commented May 15, 2023

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.

@qmkCamel
Copy link
Author

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

@qmkCamel
Copy link
Author

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

@johnno1962
Copy link
Owner

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants