-
Notifications
You must be signed in to change notification settings - Fork 3.8k
feat!: Allow moving blocks, comments and bubbles using the keyboard #9593
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
Open
gonfunko
wants to merge
29
commits into
v13
Choose a base branch
from
move-mode
base: v13
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
c44f711
refactor!: Update dragging APIs.
gonfunko 15f8b63
fix: Fix bug that caused drags to always result in deletion
gonfunko d181216
refactor: Clean up block drag handling with new API
gonfunko a6e9d0a
chore: Format files
gonfunko b86dee1
feat: Add an `isBoundedElement` type predicate
gonfunko e74b0ef
feat: Make `Bubble` implement `IBoundedElement`
gonfunko b16d7de
fix: Fix jumping/scrolling when moving blocks
gonfunko 8b2872f
feat: Add a `KeyboardMover`
gonfunko 940b9bc
feat: Update the `BlockDragStrategy` to support constrained movement
gonfunko 9ccb435
feat: Register keyboard shortcuts to drive movement
gonfunko daff5ac
feat: Display a move indicator on items that are being moved
gonfunko 16efc9f
fix: Reenable move hints
gonfunko 4139a3e
fix: Fix bugs that caused elements to be mispositioned by keyboard mo…
gonfunko 44739ed
fix: Fix a bug that caused certain connections to be visited out of o…
gonfunko e0ddebb
fix: Fix a bug that caused blocks to become disconnected during const…
gonfunko 79ea540
test: Add tests for keyboard-driven movement
gonfunko d6fe8e8
chore: Add exports
gonfunko 5bbc742
chore: Run formatter
gonfunko a424017
chore: Make the linter happy
gonfunko 691dda1
chore: Update closure compiler
gonfunko 615c852
fix: Fix test suite on non-macOS
gonfunko d2e2266
fix: Don't scroll in response to arrow keys while moving items
gonfunko 20f32f6
fix: Fix positioning of move indicator in RTL
gonfunko 9e07404
refactor: Clarify return types of drag-start related methods
gonfunko 2cb5802
refactor: Make the `KeyboardMover` a singleton
gonfunko 4753230
fix: Fix import path
gonfunko 5d54832
refactor: Remove `WorkspaceSvg.keyboardMoveInProgress`
gonfunko 2f627c3
fix: Fix tests
gonfunko fe2677c
chore: Remove unused import
gonfunko File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 took me a second to make sure i'm parsing this correctly. we don't want to do this for mouse drags but do want to do it for keyboard drags? if so can you add a comment i think to confirm that it's intentional