Skip to content

Commit e955486

Browse files
Remove the use of NSEvent for lines movement API (#333)
1 parent 767453d commit e955486

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

Sources/CodeEditSourceEditor/Controller/TextViewController+LoadView.swift

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,6 @@ extension TextViewController {
201201

202202
func handleCommand(event: NSEvent, modifierFlags: UInt) -> NSEvent? {
203203
let commandKey = NSEvent.ModifierFlags.command.rawValue
204-
let commandOptionKey = NSEvent.ModifierFlags.command.union(.option).rawValue
205204

206205
switch (modifierFlags, event.charactersIgnoringModifiers) {
207206
case (commandKey, "/"):
@@ -210,15 +209,9 @@ extension TextViewController {
210209
case (commandKey, "["):
211210
handleIndent(inwards: true)
212211
return nil
213-
case (commandOptionKey, "["):
214-
moveLinesUp()
215-
return nil
216212
case (commandKey, "]"):
217213
handleIndent()
218214
return nil
219-
case (commandOptionKey, "]"):
220-
moveLinesDown()
221-
return nil
222215
case (commandKey, "f"):
223216
_ = self.textView.resignFirstResponder()
224217
self.findViewController?.showFindPanel()

0 commit comments

Comments
 (0)