Drag using keyboard arrow keys. (Angular)
See original GitHub issueFor more better user experience I want to drag target on keyboard arrow keys. Is there any way to drag using keyboard arrow keys. I am in the middle of following.
document.addEventListener('keydown', (e) => {
if (e.keyCode === 38) {
// I think here I should trigger onDrag, but unable to trigger
}
});
Thanks in advance.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:6 (2 by maintainers)
Top Results From Across the Web
How to Add Keyboard Navigation to Angular Lists
In this article, we'll go through one such challenge: implementing keyboard navigation to a list component. An example use-case can be an ...
Read more >Angular 7 how to keep focus on an element while using the ...
Angular 7 how to keep focus on an element while using the arrow keys for “drag and drop” via keyboard. Up arrow works...
Read more >Mapping arrow keys to switch between photos in Angular
Mapping arrow keys to switch between photos in Angular ... map them to the left and right arrow keys on the keyboard, and...
Read more >Angular (forked) - StackBlitz
CdkDrag} from '@angular/cdk/drag-drop'; ... from '@angular/cdk/. a11y';. /**. * Enables keyboard navigation (home, end,. arrow keys) across the host element.
Read more >Doing A11y easily with Angular CDK. Keyboard-Navigable Lists
There are two common techniques that can help us to implement keyboard navigation for lists. Each technique gives us the ability to interact...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@iprasadg
moveable
0.15.1react-moveable
0.18.0preact-moveable
0.17.0ngx-moveable
0.11.0svelte-moveable
0.6.0Added
request
method.https://daybrush.com/moveable/release/latest/doc/Moveable.html#request
Draggable
https://daybrush.com/moveable/release/latest/doc/Moveable.Draggable.html#request
Resizable
https://daybrush.com/moveable/release/latest/doc/Moveable.Resizable.html#request
Scalable
https://daybrush.com/moveable/release/latest/doc/Moveable.Scalable.html#request
Rotatable
https://daybrush.com/moveable/release/latest/doc/Moveable.Rotatable.html#request
Applied to the main demo.
https://daybrush.com/moveable/
https://github.com/daybrush/moveable/blob/482e8d63c74de82e966a638472a984f9a08ce85b/demo/src/Editor.ts#L60-L77
@iprasadg
I think that’s a good idea. I planned to add it later, but it’s not easy.
This may seem a bit late, but I will try to do it fast.