-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve UX of vendors selectable table
- Loading branch information
Showing
14 changed files
with
659 additions
and
504 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// Copyright (c) halo https://github.com/halo/LinkLiar | ||
// SPDX-License-Identifier: MIT | ||
|
||
import CoreGraphics | ||
|
||
extension CGKeyCode { | ||
static let kVKOption: CGKeyCode = 0x3A | ||
static let kVKRightOption: CGKeyCode = 0x3D | ||
static let kVKSpace: CGKeyCode = 0x31 | ||
|
||
var isPressed: Bool { | ||
CGEventSource.keyState(.combinedSessionState, key: self) | ||
} | ||
|
||
static var optionKeyPressed: Bool { | ||
Self.kVKOption.isPressed || Self.kVKRightOption.isPressed | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.