cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörn Wagner (JIRA) <j...@apache.org>
Subject [jira] [Commented] (CB-10376) autofocus doesn't work with WKWebView engine plugin
Date Fri, 08 Jul 2016 18:38:11 GMT

    [ https://issues.apache.org/jira/browse/CB-10376?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15368156#comment-15368156
] 

Jörn Wagner commented on CB-10376:
----------------------------------

I have just integrated your code snippet into my fork and tested it with iOS 9.3 in Simulator
and on an iPhone. Works like a charm! Thank you!

https://github.com/YetiCGN/cordova-plugin-wkwebview-engine/commit/147b67d0600363f2d5d7d1b92031df03a469a38c

I just have to fulfill all the requirements for a PR, which I will do shortly.

> autofocus doesn't work with WKWebView engine plugin
> ---------------------------------------------------
>
>                 Key: CB-10376
>                 URL: https://issues.apache.org/jira/browse/CB-10376
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin WKWebViewEngine
>    Affects Versions: 5.4.1
>         Environment: Tested on iPhone 6 plus and iPhone 5S both running iOS 9.2 
>            Reporter: David Douglas
>            Priority: Minor
>              Labels: iOS, triaged
>
> When using WKWebView engine the iOS Soft Keyboard fails to automatically open when the
'autofocus' attribute is set.
> How to recreate:
> 1. Add platform and keyboard plugin
> ```
> cordova platform add ios@4.0.1
> cordova plugin add cordova-plugin-keyboard@1.1.3 --save
> ```
> 2. Update iOS keyboard to enable focus commands in 'config.xml':
> ```
> <preference name="KeyboardDisplayRequiresUserAction" value="false" />
> ```
> 3. Add textarea to test with autofocus attribute.
> ```
> <textarea placeholder="Edit text" autofocus></textarea>
> ```
> (Note: Before adding the WKWebView engine plugin the UIWebView will automatically open
the Soft Keyboard.)
> 4. Add the WKWebView engine plugin
> ```
> cordova plugin add cordova-plugin-wkwebview-engine@1.0.1 --save
> ```
> What happens:
> Nothing.
> What should happen:
> The soft keyboard should open automatically (the same a UIWebView)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message