-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
CHE-3583: Add new line to message area in Git commit window when Enter pressed #4280
Conversation
-1 for realization. It would be better to extend existed
then annotate
and create a new instance of message in constructor:
The main pros from this approach is to reuse text area which handles enter key in other components. |
Build success. https://ci.codenvycorp.com/job/che-pullrequests-build/2078/ |
@vzhukovskii Thanks for your advice, done. |
Build finished. |
Build success. https://ci.codenvycorp.com/job/che-pullrequests-build/2087/ |
* | ||
* @author Igor Vinokur | ||
*/ | ||
public class TextArea extends com.google.gwt.user.client.ui.TextArea { |
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.
Don't use same name in class hierarchy. Maybe it would be better to rename this class smth to related with multiline. e.g. MultilineTextArea
or LFTextArea
(from https://en.wikipedia.org/wiki/Newline)
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.
Renamed to ShiftableTextArea
WDYT?
Build finished. |
Build success. https://ci.codenvycorp.com/job/che-pullrequests-build/2097/ |
public ShiftableTextArea() { | ||
super(); | ||
|
||
new KeyboardNavigationHandler(this) { |
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.
Can you move this code from constructor?
This looks weird and too complicated for reading
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.
done
Build finished. Please check console output at $BUILD_URL to view the results. |
Build # 2126 - FAILED Please check console output at https://ci.codenvycorp.com/job/che-pullrequests-build/2126/ to view the results. |
Selenium tests result:
Rerun failed tests result:
|
What does this PR do?
Add possibility to insert new lines to 'message' text area in Git commit window
What issues does this PR fix or reference?
#3583
Changelog
Added possibility to insert new lines to 'message' text area in Git commit window by pressing ENTER key
Release Notes
Added possibility to insert new lines to 'message' text area in Git commit window by pressing ENTER key:
Docs PR
N/A Git commit window doesn't mentioned in docs