Skip to content

Commit

Permalink
Fixed bug when merging commit 4bcb926
Browse files Browse the repository at this point in the history
  • Loading branch information
iMasanari committed Dec 19, 2016
1 parent b003b6b commit d898106
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cmd-eikana/Info.plist
Expand Up @@ -17,7 +17,7 @@
<key>CFBundlePackageType</key> <key>CFBundlePackageType</key>
<string>APPL</string> <string>APPL</string>
<key>CFBundleShortVersionString</key> <key>CFBundleShortVersionString</key>
<string>2.1.3</string> <string>2.2.0</string>
<key>CFBundleSignature</key> <key>CFBundleSignature</key>
<string>????</string> <string>????</string>
<key>CFBundleURLTypes</key> <key>CFBundleURLTypes</key>
Expand All @@ -34,7 +34,7 @@
</dict> </dict>
</array> </array>
<key>CFBundleVersion</key> <key>CFBundleVersion</key>
<string>12</string> <string>13</string>
<key>LSMinimumSystemVersion</key> <key>LSMinimumSystemVersion</key>
<string>$(MACOSX_DEPLOYMENT_TARGET)</string> <string>$(MACOSX_DEPLOYMENT_TARGET)</string>
<key>LSUIElement</key> <key>LSUIElement</key>
Expand Down
4 changes: 2 additions & 2 deletions cmd-eikana/KeyEvent.swift
Expand Up @@ -258,7 +258,7 @@ class KeyEvent: NSObject {


func hasConvertedEvent(_ event: CGEvent, keyCode: CGKeyCode? = nil, keyDown: Bool = false) -> Bool { func hasConvertedEvent(_ event: CGEvent, keyCode: CGKeyCode? = nil, keyDown: Bool = false) -> Bool {
let event = event.type.rawValue == UInt32(NX_SYSDEFINED) ? let event = event.type.rawValue == UInt32(NX_SYSDEFINED) ?
CGEvent(keyboardEventSource: nil, virtualKey: 0, keyDown: keyDown)! : event.copy()! CGEvent(keyboardEventSource: nil, virtualKey: 0, keyDown: keyDown)! : event


let shortcht = KeyboardShortcut(event) let shortcht = KeyboardShortcut(event)


Expand All @@ -275,7 +275,7 @@ class KeyEvent: NSObject {
} }
func getConvertedEvent(_ event: CGEvent, keyCode: CGKeyCode? = nil, keyDown: Bool = false) -> CGEvent? { func getConvertedEvent(_ event: CGEvent, keyCode: CGKeyCode? = nil, keyDown: Bool = false) -> CGEvent? {
let event = event.type.rawValue == UInt32(NX_SYSDEFINED) ? let event = event.type.rawValue == UInt32(NX_SYSDEFINED) ?
CGEvent(keyboardEventSource: nil, virtualKey: 0, keyDown: keyDown)! : event.copy()! CGEvent(keyboardEventSource: nil, virtualKey: 0, keyDown: keyDown)! : event


let shortcht = KeyboardShortcut(event) let shortcht = KeyboardShortcut(event)


Expand Down

0 comments on commit d898106

Please sign in to comment.