Improve keyboard arrow keys navigation.

This commit is contained in:
Damiano Galassi committed 2019-11-11 19:36:00 +01:00
1 parent 7f0f87baca
commit 7ed44d94d4
13 files changed
+158 -112

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
//
// PropertyView.swift
// Subler
//
// Created by Damiano Galassi on 11/11/2019.
//
import Cocoa
class PropertyView : NSViewController {
@IBOutlet var tabView: NSTabView?
func navigate(direction: Int) {
if direction == NSRightArrowFunctionKey {
tabView?.selectNextTabViewItem(self)
} else {
tabView?.selectPreviousTabViewItem(self)
}
}
}