閱讀558 返回首頁    go iPhone_iPad_Mac_apple


How do I force the keyboard to stay open in Saf...

Is there a manual way to force the keyboard to be displayed whenever I want in Safari?
I know it will pop up when I click on Search or the address bar, but I need to have it displayed while I'm reading a web page.

Thanks.
Roxy

As I already mentioned, the keyboard will automatically and only appear when a text input field is active. That is the way it is designed and you cannot change that. You will have access to the keyboard whenever access to it is required.

I still don't understand why you would choose to obscure half of the screen with a keyboard when you're not even using it.

I need to have it displayed while I'm reading a web page.


Why? The keyboard is only visible when you activate a text input field. It has no use otherwise.

Thank you for your reply.

But, I'm used to having access to the keyboard and it would be helpful for me.

Roxy

The keyboard will (as far as I know) only be available if there is a need for it - so if focus isn't on the address bar, search box, or an input field on the window, it will not display; otherwise it will be hidden

As I already mentioned, the keyboard will automatically and only appear when a text input field is active. That is the way it is designed and you cannot change that. You will have access to the keyboard whenever access to it is required.

I still don't understand why you would choose to obscure half of the screen with a keyboard when you're not even using it.

Ok. Thanks.

Roxy

I disagree with your statement that it will automatically appear when you need it. 

 

Here is my situation.  I'm creating a formula editor similar to MathType using an Html 5 Canvas.  I have one in Flash, but need it to work on IOS.  The canvas can receive the focus and it can receive keyboard events.  However, the keyboard does not display on an Ipad or Iphone.  On an android device you can force it to display by pressing and holding the menu button, but in IOS.   I can't figure out how to get it to display programatically.  If HTML5 is supposed to be a replacement of Flash, then a feature to display the keyboard should really be there.  I plan on trying either today or tomorrow on creating a proof of concept for this using possibly a hidden input field to proxy all my keyboard events for the canvas, but it would have been a lot easier to just say, "display keyboard", or have the canvas say, "I need the keyboard".  If we had that, then you can imagine the Canvas as being a better replacement for Flash.



I'm also interested in an iPad-friendly "formula editor similar to MathType", and have found the keyboard behaviour most troublesome. If you are developing a solution that I might be able to license, please keep me informed.

 

-steve



I have the same problem. To suggest that the keyboard appears whenever it is needed is based on the flawed assumption that it is only needed for text boxes. I have a web site that captures keypress events and uses a HTML 5 canvas to create a special purpose editor (it will take a long time to explain why the usual editors are unsuitable - just accept it). It works fine on a PC but is unuseable on an iPhone and iPad simply because there appears to be no way to bring up the keyboard.



If anyone is still interested, here is the closest I could get to a solution.

 

If the iPhone or iPad wants a text field, give it one. Create it immediately before the area your keystrokes will populate, then do everything you can to hide it.

 

<input type="text" id="keyboardtrigger" />

 

Now, every event where you want to make the keyboard visible, add the Javascript line

$("#keyboardtrigger").focus();

 

And the keyboard appears. Take the focus away from the text box and it dissapears.

 

Just a couple of notes:-

  • You will get a very small blinking cursor - hopefully not too much of a problem
  • The keyboard works, but cursor movements and mouse drags for selecting your text doesn't. That is a totally different problem. Like the keyboard, they really only work in a text field.


I need the keyboard to stay visible when doing crosswords such as the Guardian cryptics. On Windows, eg in Chrome, the cursor advances one square at a time each time I type a letter. On my iPad, the keyboard disappears after each letter - very annoying. I have to select each letter square individually. So, in response to Julian Wright, there are definitely good reasons to keep the keyboard visible. It would be a very useful feature.



Two reasons it would be handy to be able to force the keyboard to appear:

 

Typing in a date or time in the calendar instead of playing slot machine to get the right one.

Typing the name of a folder in Mail to file a message.

 

I'm sure there are others. My BlackBerry could do both of these things.



I am another developer building a maths editor in an HTML element by handling key and mouse events and then generating MathJax which gets nicely rendered as WYSIWYG mathematics.

 

An <input> field almost worked but for some reason the Math gets rendered in a gray area below the input field.

 

I will likely take a crack at BGC's solution, but that means refactoring all over my app to decouple the browser's idea of the focus from the application's.

 

Much simpler would be for iOS to recognize that one can never anticipate the clever but sensible things developers will do with any powerful tool and just let us request keyboards when we (the user really) needs one.



there are websites which might expedt keyboard input without input field.

see https://vim-adventures.com

what is your answer to that one? better use mac ;-)?



The accepted answer for this question is incorrect. I have the opposite problem. My websites have a problem where the keyboard is popping up all the time when there is no input boxes at all on the site!



最後更新:2017-10-01 14:28:26

  上一篇:go adding files to ipad apps on updated itunes
  下一篇:go Permanent iCloud photo storage