Closed elanzini closed 1 year ago
Here is what I mean about the focus not working in #4. At the start the focus is on the text box, then I open the app (Command + K) and the focus is on the app. I press escape, the app is closed but the focus is not back on the text box.
I'll close this issue since the <Esc>
to close window feature has been implemented.
@elanzini your issue has been fixed in this commit dde828c. Let's move the refocus window discussion to #4.
I have updated the implementation of the press <Esc>
to hide the spotlight window. See commit https://github.com/ahkohd/tauri-macos-spotlight-example/commit/5be85f387a3d001dadd31906c3359541bfeff7a2.
It would be cool to emulate the spotlight functionality where the application is closed when
escape
key is pressed. Thanks again for putting this example together!