Moving cursor with keybindings behaves different than other macOS text editor #50
Closed
Lukas-Stuehrk
started this conversation in
General
Replies: 1 comment 1 reply
-
makes sense. if you want, I'd welcome this change (with these tests) if you have some spare time. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Moving cursors behaves different in STTextView than in NSTextView or other macOS text editors, e.g. TextEdit app or Xcode:
ctrl
+e
), then the cursor jumps to the end of the line as expected. Then, if you press it a second time, I expect that nothing should happen because the cursor is already at the end of the line. This is also the behaviour in NSTextView / other text editors. But in STTextView, the cursor jumps to the begining of the next line.ctrl
+a
), then the cursor jumps to the beginning of the line as expected. Then, if you press it a second time, I expect that nothing should happen because the cursor is already at the beginning of the line. This is also the behaviour in NSTextView / other text editors. But in STTextView, the cursor jumps to the end of the previous line.The following test cases which fail describe the behaviour:
If you replace
STTextView()
withNSTextView()
, then the tests will pass.Beta Was this translation helpful? Give feedback.
All reactions