angular-ui/ui-grid

Text selection is disabled due to hack for screen readers

Open

#4.325 geöffnet am 4. Sept. 2015

Auf GitHub ansehen
 (4 Kommentare) (0 Reaktionen) (1 zugewiesene Person)JavaScript (2.496 Forks)batch import
Hi-Pri Buga11yhelp wanted

Repository-Metriken

Stars
 (5.395 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

We have just migrated from 3.0.1 to 3.0.5 and noticed that we cannot select text inside cells anymore. After some debug and investigations we found that the code that causes the selection not to work anymore is this:

/*
           * XXX Hack for screen readers.
           * This allows the grid to focus using only the screen reader cursor.
           * Since the focus event doesn't include key press information we can't use it
           * as our primary source of the event.
           */
          $elm.on('mousedown', preventMouseDown);

Let me mention that cellNav is enabled in our setup.

Could there be an option introduced to choose if the text selection should be disabled or not? Or how should we get around this problem?

Contributor Guide