Major improvements and bug fixes for v1.1.0
Features: - Add auto-enable on startup based on config - Add enabled state persistence in config.json - Add limitations notice in GUI menu - Simplify logging to single file (uskey.log) - Change "Open Logs Folder" to "Open Config Folder" Bug Fixes: - Fix GUI status display mismatch on startup - Fix first toggle click not working issue - Revert password field changes that caused key blocking UI Changes: - Add ⚠️ emoji to "About Limitations" menu item - Remove button action to fix menu refresh 🤖 Generated with [Qoder][https://qoder.com]
This commit is contained in:
@@ -38,14 +38,7 @@ class EventTapManager {
|
||||
if manager.keyMapper.hasMappingFor(keyCode: keyCode) {
|
||||
if let mappedKey = manager.keyMapper.getMappedKey(for: keyCode) {
|
||||
Logger.debug("Remapping: \(keyCode) -> \(mappedKey)")
|
||||
|
||||
let newEvent = CGEvent(keyboardEventSource: nil, virtualKey: CGKeyCode(mappedKey), keyDown: type == .keyDown)
|
||||
if let newEvent = newEvent {
|
||||
newEvent.flags = event.flags
|
||||
newEvent.post(tap: .cghidEventTap)
|
||||
}
|
||||
|
||||
return nil
|
||||
event.setIntegerValueField(.keyboardEventKeycode, value: mappedKey)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user