let window.show(...) interupt input mode
This commit is contained in:
parent
2e50b4fedd
commit
e716dfcef2
@ -77,8 +77,13 @@ public class IITC_WebView extends WebView {
|
|||||||
HitTestResult testResult = this.getHitTestResult();
|
HitTestResult testResult = this.getHitTestResult();
|
||||||
if (url.startsWith("javascript:") && testResult != null && testResult.getType() == HitTestResult.EDIT_TEXT_TYPE)
|
if (url.startsWith("javascript:") && testResult != null && testResult.getType() == HitTestResult.EDIT_TEXT_TYPE)
|
||||||
{
|
{
|
||||||
Log.d("iitcm", "in insert mode. do not load script.");
|
// let window.show(...) interupt input
|
||||||
return;
|
// window.show(...) is called if one of the action bar buttons
|
||||||
|
// is clicked
|
||||||
|
if (!url.startsWith("javascript: window.show(")) {
|
||||||
|
Log.d("iitcm", "in insert mode. do not load script.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (!url.startsWith("javascript:")) {
|
if (!url.startsWith("javascript:")) {
|
||||||
// force https if enabled in settings
|
// force https if enabled in settings
|
||||||
|
Loading…
x
Reference in New Issue
Block a user