~habibalamin/Commandeer

d73b053e84116c7a5da36df8d55c91d948283037 — حبيب ألأمين 2 years ago cfcdecc change-metalt-into-commandeer
Increase timeout to 200ms
2 files changed, 2 insertions(+), 2 deletions(-)

M Commandeer/CommandPressToEscapePressTransformer.swift
M README.md
M Commandeer/CommandPressToEscapePressTransformer.swift => Commandeer/CommandPressToEscapePressTransformer.swift +1 -1
@@ 34,7 34,7 @@ func commandPressToEscapePressTransformer(proxy: CGEventTapProxy,
    if (keyEventCmdPressed(currentKeyDown.flags) &&
        !keyEventCmdPressed(event.flags))
    {
      if (event.timestamp - currentKeyDown.timestamp <= 100_000_000) // ns
      if (event.timestamp - currentKeyDown.timestamp <= 200_000_000) // ns
      {
        let eventSource = CGEventSource(event: event)


M README.md => README.md +1 -1
@@ 23,4 23,4 @@ When you first launch the app, it'll quit immediately and macOS will pop up a di

Then, relaunch the app. You should see a green four-leafed clover emoji in the menu bar. That's the app.

You can keep using command as you normally would as a modifier. You can also use it as a shortcut for escape. If you hit it as a shortcut for escape, but change your mind halfway through, simply hold it for longer than 100 milliseconds; if you let go after holding instead of pressing, Commandeer doesn't simulate the escape keypress.
You can keep using command as you normally would as a modifier. You can also use it as a shortcut for escape. If you hit it as a shortcut for escape, but change your mind halfway through, simply hold it for longer than 200 milliseconds; if you let go after holding instead of pressing, Commandeer doesn't simulate the escape keypress.