grab focus on resume

Signed-off-by: tobiasKaminsky <[email protected]>
This commit is contained in:
tobiasKaminsky committed 2019-06-04 11:25:03 +02:00
1 parent 7a2ab86a88
commit df6f4cf9d2
1 file changed
+8
@@ -348,6 +348,14 @@ public class RichDocumentsWebView extends ExternalSiteWebView {
}
}
@Override
protected void onResume() {
super.onResume();
webview.evaluateJavascript("if (typeof OCA.RichDocuments.documentsMain.postGrabFocus !== 'undefined') " +
"{ OCA.RichDocuments.documentsMain.postGrabFocus(); }", null);
}
private class RichDocumentsMobileInterface {
@JavascriptInterface
public void close() {