-
Notifications
You must be signed in to change notification settings - Fork 2.8k
[Optimization] Code editor key binding event optimization. #1287
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Optimization] Code editor key binding event optimization. #1287
Conversation
| $scope.editor.commands.bindKey('ctrl-.', 'startAutocomplete'); | ||
| $scope.editor.commands.bindKey('ctrl-space', null); | ||
|
|
||
| $scope.keyBindingEditorFocusAction = function(moveTarget, scrollValue) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be var, not $scope
…t row check logic
|
Sorry, i found a bug. |
|
Bug fixes completed. |
|
Thanks for the patch. Could you create two paragraphs and write multiple lines of text (more than 3 lines) in the code editor and try move focus by up/down key? Cursor skips top/bottom line of text in the code editor. |
|
@Leemoonsoo |
|
@Leemoonsoo |
|
Tested and LGTM. |
zeppelin custom key binding event optimization for Ace Code editor Improvement - [x] optimization for key binding and check logic For many in the code editor and typing quickly. The effect is greater when there are many Paragraph. * Does the licenses files need update? no * Is there breaking changes for older versions? no * Does this needs documentation? no Author: CloverHearts <cloverheartsdev@gmail.com> Closes #1287 from cloverhearts/dev/codeditorKeyBindOptimization and squashes the following commits: 76cd284 [CloverHearts] paragraph move jum bug fixed. 27f7146 [CloverHearts] Modify the style syntax for code editor e4c37b1 [CloverHearts] move to original key bind function for codeeditor optimiza 6a9edbe [CloverHearts] change access type $scope access member to local variable and add last row check logic 8cc63b7 [CloverHearts] fixed syntax error for editor key binding optimization. b37788d [CloverHearts] Code editor key binding event optimization. (cherry picked from commit ea76ca9) Signed-off-by: Lee moon soo <moon@apache.org>
### What is this PR for? zeppelin custom key binding event optimization for Ace Code editor ### What type of PR is it? Improvement ### Todos - [x] optimization for key binding and check logic ### How should this be tested? For many in the code editor and typing quickly. The effect is greater when there are many Paragraph. ### Questions: * Does the licenses files need update? no * Is there breaking changes for older versions? no * Does this needs documentation? no Author: CloverHearts <cloverheartsdev@gmail.com> Closes apache#1287 from cloverhearts/dev/codeditorKeyBindOptimization and squashes the following commits: 76cd284 [CloverHearts] paragraph move jum bug fixed. 27f7146 [CloverHearts] Modify the style syntax for code editor e4c37b1 [CloverHearts] move to original key bind function for codeeditor optimiza 6a9edbe [CloverHearts] change access type $scope access member to local variable and add last row check logic 8cc63b7 [CloverHearts] fixed syntax error for editor key binding optimization. b37788d [CloverHearts] Code editor key binding event optimization.

What is this PR for?
zeppelin custom key binding event optimization for Ace Code editor
What type of PR is it?
Improvement
Todos
How should this be tested?
For many in the code editor and typing quickly.
The effect is greater when there are many Paragraph.
Questions: