Add KeyboardDelegate.

This commit is contained in:
Brent Simmons
2017-05-26 13:25:02 -07:00
parent 21801b8b6a
commit ef9d4edbd1
2 changed files with 30 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
//
// KeyboardDelegateProtocol.swift
// Evergreen
//
// Created by Brent Simmons on 10/11/16.
// Copyright © 2016 Ranchero Software. All rights reserved.
//
import Cocoa
let keypadEnter: unichar = 3
protocol KeyboardDelegate: class {
// Return true if handled.
func handleKeydownEvent(_: NSEvent, sender: AnyObject) -> Bool
}