Wednesday, February 26, 2014

Re: Controlling admin ManyToManyField widget with keyboard

Oh, sorry. That widget uses ModelAdmin.filter_horizontal (https://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.ModelAdmin.filter_horizontal), it is not the standard admin ManyToMany widget. I just tested it in user permissions. I just got it to work by selecting(multiple) elements in one widget, tabbing to the move arrow, and clicking enter.
Maybe that will work for you?

Regards,
~CK

On Wednesday, February 26, 2014 4:03:41 PM UTC-6, cool-RR wrote:
The widget is a combination of two multiple select boxes and arrows to move items between boxes. I have no issues with the selecting part. I have an issue with the moving part.


On Wed, Feb 26, 2014 at 11:58 PM, C. Kirby <mis...@gmail.com> wrote:
I don't think I am. A ManyToMany relation in admin is represented as a select-multiple html widget - is that what we are talking about?

The action that I described in my first message to select multiple elements in a select-multiple widget works in Firefox, Opera, and with a modifier in IE. It does not work in Chromium as indicated by the issue I linked to in the last message.

Please let me know if I am missing something in your question.

Regards,
~CK


On Wednesday, February 26, 2014 3:48:25 PM UTC-6, cool-RR wrote:
Are you sure that you're not confusing the behavior of the select box with the toggle action? Because I'm having trouble with the toggle action, not the select box.


On Wed, Feb 26, 2014 at 8:08 PM, C. Kirby <mis...@gmail.com> wrote:
It appears that multi-select form widgets cannot be keyboard controlled in chromium, and it is a known bug/non-implementation:

http://code.google.com/p/chromium/issues/detail?id=90172


On Wednesday, February 26, 2014 11:28:05 AM UTC-6, cool-RR wrote:
Sorry, space doesn't do the toggle. (Windows 7 Chrome.)


On Wed, Feb 26, 2014 at 6:43 PM, C. Kirby <mis...@gmail.com> wrote:
While holding Ctrl (Command on a Mac), click the spacebar on the relations you want to select.
Spacebar handles the toggle action, ctrl(command) keeps you in multi-select mode

On Wednesday, February 26, 2014 6:12:09 AM UTC-6, cool-RR wrote:
Hi,

How do I control the admin ManyToManyField widget with the keyboard?


Thanks,
Ram.

--
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/VxFrne7x92E/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/VxFrne7x92E/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.

--
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/VxFrne7x92E/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/6f425681-d3ec-45c4-9157-32047554d759%40googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/a22888ae-5fb9-4cd6-846e-c334e8504c71%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment