Improve keyboard arrow keys navigation.
This commit is contained in:
13 files changed
+158
-112
No files matched your search
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user