rstudio / shiny

Easy interactive web applications with R
https://shiny.posit.co/
Other
5.37k stars 1.87k forks source link

Cannot choose mutiple choices using keyboard in selectInput widget #3018

Open jooyoungseo opened 4 years ago

jooyoungseo commented 4 years ago

In the following Shiny App, try to select multiple states using keyboard (without any mouse interaction).

Can you select multiple states wiht and without screen readers via keyboard?

I was not able to do using JAWS screen reader on Windows 10.

I guess this issue is also related.

xfun::session_info("shiny")
#> R version 4.0.2 (2020-06-22)
#> Platform: x86_64-w64-mingw32/x64 (64-bit)
#> Running under: Windows 10 x64 (build 19041)
#> 
#> Locale:
#>   LC_COLLATE=English_United States.1252 
#>   LC_CTYPE=English_United States.1252   
#>   LC_MONETARY=English_United States.1252
#>   LC_NUMERIC=C                          
#>   LC_TIME=English_United States.1252    
#> system code page: 949
#> 
#> Package version:
#>   base64enc_0.1.3      BH_1.72.0.3          commonmark_1.7      
#>   crayon_1.3.4         digest_0.6.25        fastmap_1.0.1       
#>   glue_1.4.1           graphics_4.0.2       grDevices_4.0.2     
#>   htmltools_0.5.0.9000 httpuv_1.5.4         jsonlite_1.7.0      
#>   later_1.1.0.1        magrittr_1.5         methods_4.0.2       
#>   mime_0.9             promises_1.1.1       R6_2.4.1            
#>   Rcpp_1.0.5           rlang_0.4.7          shiny_1.5.0.9001    
#>   sourcetools_0.1.7    stats_4.0.2          tools_4.0.2         
#>   utils_4.0.2          withr_2.2.0          xtable_1.8.4

library(shiny)

ui <- fluidPage(
  selectInput(
    "state", "What's your favourite state?", state.name,
    multiple = TRUE
  )
)

server <- function(input, output) {

}

shinyApp(ui, server)
#> 
#> Listening on http://127.0.0.1:5015

Created on 2020-08-25 by the reprex package (v0.3.0.9001)

cpsievert commented 4 years ago

I can select multiple states with VoiceOver on Mac OS, but no screen readers announcement are made when selections are made