Handle the Delete key in the sidebar.
This commit is contained in:
parent
702559cfb1
commit
f6f4680e10
|
@ -7,6 +7,7 @@
|
||||||
//
|
//
|
||||||
|
|
||||||
import AppKit
|
import AppKit
|
||||||
|
import RSCore
|
||||||
|
|
||||||
class SidebarOutlineView : NSOutlineView {
|
class SidebarOutlineView : NSOutlineView {
|
||||||
|
|
||||||
|
@ -32,7 +33,7 @@ class SidebarOutlineView : NSOutlineView {
|
||||||
case NSRightArrowFunctionKey:
|
case NSRightArrowFunctionKey:
|
||||||
keyHandled = true
|
keyHandled = true
|
||||||
|
|
||||||
case NSDeleteFunctionKey:
|
case NSDeleteFunctionKey, Int(kDeleteKeyCode):
|
||||||
keyHandled = true
|
keyHandled = true
|
||||||
Swift.print("NSDeleteFunctionKey")
|
Swift.print("NSDeleteFunctionKey")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue