IME // Add modifier key press variables.

This commit is contained in:
ShikiSuen 2022-03-26 18:50:58 +08:00
parent e7e5ddd326
commit 538fa8dc9f
1 changed files with 12 additions and 0 deletions

View File

@ -19,6 +19,18 @@ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR TH
import Cocoa
@objc public class IME: NSObject {
// AppleKeyboardConverter 使 KeyParser
// ctlInputMethod
// modifier flags flags AppleKeyboardConverter
@objc static var isOptionPressed: Bool = false
@objc static var isShiftPressed: Bool = false
@objc static var isCapsLockOn: Bool = false
@objc static var isCommandPressed: Bool = false
@objc static var isNumericPad: Bool = false
@objc static var isFunction: Bool = false
// MARK: - Functions
// Print debug information to the console.
@objc static func prtDebugIntel(_ strPrint: String) {
if mgrPrefs.isDebugModeEnabled {