-
Notifications
You must be signed in to change notification settings - Fork 15
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
The enter key will be enabled depending on the value of `InputContext… #11
The enter key will be enabled depending on the value of `InputContext… #11
Conversation
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.
LGTM but fix the formatting.
src/qml/EnterKey.qml
Outdated
@@ -9,6 +9,6 @@ Key { | |||
btnText: "\n" | |||
btnDisplayedText: InputPanel.enterIcon === "" ? "Enter" : "" | |||
btnIcon: InputPanel.enterIcon === "" ? "" : InputPanel.enterIcon | |||
enabled: InputContext.inputItem?.EnterKeyAction.enabled ?? true | |||
enabled: (InputContext.inputItem)?InputContext.inputItem.EnterKeyAction.enabled : true |
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.
Format the code:
enabled: (InputContext.inputItem)?InputContext.inputItem.EnterKeyAction.enabled : true | |
enabled: (InputContext.inputItem) ? InputContext.inputItem.EnterKeyAction.enabled : true |
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.
Squash all the commits into a single one for better readability.
src/qml/EnterKey.qml
Outdated
@@ -9,6 +9,6 @@ Key { | |||
btnText: "\n" | |||
btnDisplayedText: InputPanel.enterIcon === "" ? "Enter" : "" | |||
btnIcon: InputPanel.enterIcon === "" ? "" : InputPanel.enterIcon | |||
enabled: InputContext.inputItem?.EnterKeyAction.enabled ?? true | |||
enabled: InputContext.inputItem ? InputContext.inputItem.EnterKeyAction.enabled : true |
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.
Remove the empty space at the end
d659506
to
321702f
Compare
I have squashed all the commits of my branch.
Perhaps a squash and merge from your side would be a better workflow. |
The enter key will be enabled depending on the value of `InputContext.inputItem.EnterKeyAction.enabled`.
321702f
to
970d070
Compare
Having three commits for a single line change is bad in any scenario. Specifically formatting code that you changed must be amended in your first commit instead of having:
It's a bad practice and should be squashed by the submitter |
The enter key will be enabled depending on the value of
InputContext.inputItem.EnterKeyAction.enabled
.This should fix #10