-
Notifications
You must be signed in to change notification settings - Fork 0
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
FP-2932: Save doesn't work well in split screen #355
base: dev
Are you sure you want to change the base?
Conversation
…work well in split screen
Looks good. Well done. |
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.
Should we rename
keybinds.js -> keybinder.js
shortcuts.js -> keybinds.js?
I'm a bit reluctant because it might be too many changes for the next reviewer. And I'm a bit blocked by too many PRs in review. |
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.
Overall I like this a lot. You got rid of a package and improved the code a bit.
The only part I really dislike is why the renaming of the keybinds ("ctrl" to "Control", etc).
Left just a few comments for you to take a look, but great work 👍
@@ -79,16 +80,15 @@ const FlowSearch = props => { | |||
className={classes.searchInputText} | |||
autoFocus | |||
InputProps={{ | |||
...params.InputProps, |
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.
What happened to other params.InputProps
that might be passed here?
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.
Why pass them? They aren't used.
} | ||
}); | ||
|
||
window.keybinds = keybinds; |
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.
Why are we storing the keybinds
in the window?
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.
For debug purposes. So we can easily check which are the bound keybindings without changing the code.
It only brings benefits and not cons to my knowledge
SHORTCUTS: "ctrl+alt+home", | ||
SHORTCUTS: "Control+Alt+Home", |
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.
Why this change?
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.
Because we use vanilla keybind names now. It has to do with the implementation having no dependencies
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.
If you put two configs side by side and do:
- go to config 1
- save
- click on XML on config 2
- save -> the doc is not saved
@@ -0,0 +1,64 @@ | |||
import { useMemo } from "react"; |
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.
Add documentation
What you've stated does not happen to me |
c7e83f5
to
de50aff
Compare
…rk-well-in-split-screen
Quality Gate passedIssues Measures |
Needs also: https://github.com/MOV-AI/frontend-npm-ide/pull/618