-
-
Notifications
You must be signed in to change notification settings - Fork 603
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
Keyboard focus not working when using dnd extension #270
Comments
Probably related to this: |
Thanks, its working now! Kind regards, Arnold Schuitema 2014-06-26 22:13 GMT+02:00 Martin Wendt notifications@github.com:
|
I thought about modifying ext-dnd by adding a mousedown handler and set focus to the container if dragging is enabled. How did you solve it? |
Addressed by daf11c2 |
(#300 is about another problem, introduced between jQuery UI 1.10.4 and 1.11.1) The reason for #270 is that jQuery UI draggable cancels its mousedown event [jQuery UI 1.11 - Draggable] var mouse = $.widget("ui.mouse", {
...
_mouseDown: function(event) {
...
this.document
.bind( "mousemove." + this.widgetName, this._mouseMoveDelegate )
.bind( "mouseup." + this.widgetName, this._mouseUpDelegate );
event.preventDefault();
mouseHandled = true;
return true;
}, |
Hello!
This is because the tree already has focus, and the next line in DND extension doesn't let the node to be focused again:
My workaround is just to remove "!tree.hasFocus() &&" part:
|
I will apply the sugegsted patch, let's see what happens... |
For example at http://www.wwwendt.de/tech/fancytree/demo/sample-ext-dnd.html
If you click a node it is not possible to navigate with the keyboard. In the other examples it is working fine.
The text was updated successfully, but these errors were encountered: