blogofsongs
blogofsongs

Reputation: 2567

How to make Angular CDK Drag and Drop Accessible with a Keyboard

Our app has a "Form Builder" where users build a form by dragging form fields onto it. I'm researching how we would make this keyboard accessible - such that a user could...

I have found no information on making CDK Drag and Drop operations accessible with a keyboard...

Has anyone done this successfully? Could anyone provide some pointers on a good place to start making it accessible in this way?

Upvotes: 8

Views: 1852

Answers (1)

Yaseen Khamosh
Yaseen Khamosh

Reputation: 1

Add this directive to the element you want to drag with arrow keys and change xV and yV from in input box : [cdkDragFreeDragPosition]="{ x: xV, y:yV }"

Upvotes: 0

Related Questions