Comments (8)
🙏️
from keyboardshortcuts.
@sindresorhus still getting the issue for that one. (the closing the Settings window issue is fixed.) anything i can do to help troubleshoot?
from keyboardshortcuts.
I'm unable to reproduce this with the latest version together with Plash. Are you able to reproduce in Plash?
If it's only reproducible in your app, can you try replacing b878f81#diff-41fc3abd80062ae3c8634038c89a3495bcd1d2455c1ff5cd5aa022f3409c6d8dR146-R149 with:
if #available(macOS 13, *) {
Task {
try? await Task.sleep(for: .seconds(0.5))
canBecomeKey = true
}
}
from keyboardshortcuts.
will do in a couple of hours. will try the latest version of Plash, my apps, the replacement you propose, and may create a bare repo showing the issue if necessary. thanks.
from keyboardshortcuts.
- i'm unable to reproduce on Plash either, it seems
- i've replace the code in
RecorderCocoa
by the snippet above, same thing, doesn't work in my apps - if i just make
canBecomeKey = false
then everything works fine 😂️ (but haven't had dug yet about side effects
so i guess it's something in my apps. will dig. and will try to make a project from scratch and see.
also i'm on macOS 14, latest public beta if that matters. will work on latest macOS 13 tomorrow. also Plash is all good under macOS 14 so probably not the issue.
from keyboardshortcuts.
dumping what i'm finding: if i show my Settings window from launching the app again, or through pressing command ,
on my input-à-la-Alfred, then the KeyboardShortcut doesn't take focus. but if i do through the status menu item it does. they all call the same static func of a class. so not sure what's going on 😂️
from keyboardshortcuts.
i made a project from scratch with bare minimum code and the issue doesn't show up. so it has to be on my side. i'll try to figure out why, and i'll update here for reference. but as far as you're concerned, all is good on your side. thanks again Sindre!
from keyboardshortcuts.
found it. it's coming from that func in my AppDelegates:
func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
NSApp.hide(self)
return false
}
for whatever reason this causes the issue with the KeyboardShortcuts Recorder. will see what i can do now from my side.
P.S.: this code is so that when closing the Settings of my apps, the focus goes back to the previous app rather than being in the limbo.
from keyboardshortcuts.
Related Issues (20)
- No such module 'Carbon.HIToolbox' HOT 6
- [Answered] Is it possible to capture the eject key on Magic Keyboard A1644? HOT 3
- How to change the Recorder size in swiftUI HOT 2
- Support `keyDown` when NSMenu is open on macOS 14
- unable to build signed build with xcodebuild
- If I don't need global shortcut keys, how do I configure them? HOT 2
- Add ability to override a key name (Change _ to "Space") HOT 2
- Unable to continue HOT 1
- closing the Settings while having the KeyboardShortcuts Recorded focused makes the KeyboardShortcut not work HOT 2
- Can I still use the spacebar for spacing after setting it as a shortcut key? HOT 2
- is there any (easy hehe) way to prevent the KeyboardShortcut to respond when the user is on the status item(s) of the app HOT 3
- Is it possible to trigger a shortcut key continuously by holding it down? HOT 1
- I hope show system-wide keyboard shortcut name HOT 1
- @State is not updated when used in App HOT 1
- Complying with Encryption Export Regulations HOT 1
- Fail to listen for Caps Lock HOT 1
- Slovak translation HOT 2
- Dynamic keyboard shortcuts? HOT 1
- Annotate `Shortcut/description` with @MainActor to prevent crashes
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from keyboardshortcuts.