Skip to content

Commit 11397f0

Browse files
committed
Fixes #15
1 parent 1fef253 commit 11397f0

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

WebShell/AppDelegate.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import Cocoa
1111
import Foundation
1212
import NotificationCenter
1313

14-
1514
@NSApplicationMain
1615
class AppDelegate: NSObject, NSApplicationDelegate, NSUserNotificationCenterDelegate {
1716

WebShell/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@
3434
<key>NSMainStoryboardFile</key>
3535
<string>Main</string>
3636
<key>NSPrincipalClass</key>
37-
<string>NSApplication</string>
37+
<string>WebShell.WebShellMediaKeysSupport</string>
3838
</dict>
3939
</plist>

WebShell/WebShellMediaKeysSupport.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
import AppKit
1111
import Cocoa
1212

13-
// TODO: Function 'sendEvent' is not being called.
14-
1513
/**
1614
Class WebShellMediaKeysSupport
1715

@@ -48,11 +46,11 @@ class WebShellMediaKeysSupport: NSApplication {
4846
print("Rewind!")
4947
// F7 pressed
5048
break
51-
case NX_KEYTYPE_PREVIOUS:
49+
case NX_KEYTYPE_PREVIOUS: // Not called?
5250
print("Previous!")
5351
// F7
5452
break
55-
case NX_KEYTYPE_NEXT:
53+
case NX_KEYTYPE_NEXT: // Not called?
5654
print("Next!")
5755
// F9 pressed
5856
break

0 commit comments

Comments
 (0)