-
Notifications
You must be signed in to change notification settings - Fork 326
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
Implement back and forth navigation #9301
Implement back and forth navigation #9301
Conversation
note that opening a PR asap isn't necessary - if anything we might even prefer opening PRs later (if not as late as possible) because each push takes up CI time, even if the PR is in draft state (branches are ok though) |
yea, even though I opened the PR recently, I push only when I feel it's necessary :) |
a74c269
to
13b3508
Compare
app/ide-desktop/lib/dashboard/src/configurations/inputBindings.ts
Outdated
Show resolved
Hide resolved
) | ||
|
||
React.useEffect(() => { | ||
if (detect.isOnElectron()) { |
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 about in the browser?
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.
Keyboard navigation in the browser works out of the box
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.
but Cmd+[
and Cmd+ArrowLeft
do not - and i think users would be quite surprised when they see it in the shortcuts configuration page but somehow they do not work
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.
Sorry, could you elaborate? I don't understand what you were trying to say by but Cmd+[ and Cmd+ArrowLeft do no
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.
afaict cmd+[
is not a native browser shortcut (unless it is on macos).
similarly cmd+arrowleft
is a native browser shortcut on neither windows nor linux
is it not an option to |
qa 🟢 |
missing |
) | ||
|
||
React.useEffect(() => { | ||
if (detect.isOnElectron()) { |
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.
but Cmd+[
and Cmd+ArrowLeft
do not - and i think users would be quite surprised when they see it in the shortcuts configuration page but somehow they do not work
btw: i think the event handler is still needed for browser, because |
also the icons for "go back" and "go forward" seem to be 24px, making the icons column in the "keyboard shortcuts" settings to be styled a bit awkwardly - note that most of our icons are 16px |
53cf827
to
2db1f06
Compare
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
const parsed: unknown = JSON.parse(value) | ||
return predicate(parsed) ? parsed : defaultValue | ||
} catch { | ||
return defaultValue |
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.
Maybe we want to log if we're unable to parse the JSON for some reason? Just for debugging purposes, if we start to get defaultValue
when we don't expect to.
edf7002
to
1de0985
Compare
Windows(and linux) natively support only |
while that's true, they still show up on the keyboard shortcuts page, meaning the user would expect them to actually work.
also note that it will probably be surprising for behavior to be different between electron and browser. |
Yea, I see you point, actually it's a mistake on my side (we shouldn't have |
8be863b
to
6126f85
Compare
6126f85
to
4f41db0
Compare
Pull Request Description
Important Notes
Checklist
Please ensure that the following checklist has been satisfied before submitting the PR:
Scala,
Java,
and
Rust
style guides. In case you are using a language not listed above, follow the Rust style guide.
./run ide build
.