Keyboard on Shiny mobile view

338 views
Skip to first unread message

Andre Marais

unread,
Nov 25, 2014, 5:07:29 AM11/25/14
to shiny-...@googlegroups.com
Hey

I'm building a dashboard using Shiny which is mostly intended for mobile viewing. Is it somehow possible to keep the keyboard from popping up, while accessing the dashboard from a mobile device?

Thanks!
Andre

Peter Ellis

unread,
Feb 12, 2015, 3:27:01 PM2/12/15
to shiny-...@googlegroups.com
Can I assume there isn't an answer to this one yet? Unfortunately it seems to make most of my Shiny apps, that would be fine regarding screen size etc., almost unusable on a mobile device.

Winston Chang

unread,
Feb 12, 2015, 3:40:15 PM2/12/15
to Peter Ellis, shiny-discuss
I don't think I've seen this. Are you saying that the keyboard pops up even if you haven't selected a text field?

--
You received this message because you are subscribed to the Google Groups "Shiny - Web Framework for R" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shiny-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shiny-discuss/a00dd6ae-d7e0-4335-b861-f478883d5364%40googlegroups.com.

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

Andre Marais

unread,
Feb 13, 2015, 2:37:58 AM2/13/15
to shiny-...@googlegroups.com
Nope I kinda gave up for now :P

Something like inputSelect with Multiply = T feels like it shouldn't need the keyboard, but it actually does when you want to remove a selection. But inputs like dataInput bring up the keyboard, which isn't really necessary.  

I know way to little to really know where to fiddle around with settings. I think it's more of a device setting than an html/shiny setting, but i might be completely wrong 

Winston Chang

unread,
Feb 13, 2015, 12:24:37 PM2/13/15
to Andre Marais, shiny-discuss
With a selectInput, I think that if you use selectize=F, I think it won't bring up the keyboard. The selectize-style inputs allow typing, but the non-selectize version doesn't.

I'm not sure what you mean by "dataInput", so I can't help with that.

-Winston

--
You received this message because you are subscribed to the Google Groups "Shiny - Web Framework for R" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shiny-discus...@googlegroups.com.

Peter Ellis

unread,
Feb 13, 2015, 3:53:09 PM2/13/15
to shiny-...@googlegroups.com, agma...@gmail.com
Winston's method, of using selectize=FALSE, does the trick, reverts to the usual HTML drop down box which works really well with the mobile devices I tested it on.

I'm now interested in whether it's possible to keep using selectize (if you want its flexibility and power) but switch off this keyboard popup behaviour.  Based on this sligthly acrimonious discussion: https://github.com/brianreavis/selectize.js/issues/110 which I may be misunderstanding, I thought putting

 tags$script(HTML("('.selectize-input input').prop('disabled', true);"))


into my ui.R would do the trick but it doesn't - I'm sure there's something simple I've got wrong (incorporating javascript directly into Shiny is new for me).

Drew

unread,
Jan 15, 2017, 1:54:02 AM1/15/17
to Shiny - Web Framework for R, agma...@gmail.com, peter.el...@gmail.com
Was a solution to this problem ever found?  I have the same problem wherein I would like to use selectize, but the keyboard pops-up on on mobile devices.
Reply all
Reply to author
Forward
0 new messages