Webview for Twitter😵

This commit is contained in:
cutls
2018-09-10 02:06:00 +09:00
parent 0fa27bad73
commit 75fb2e202a
91 changed files with 2589 additions and 25419 deletions

View File

@@ -3,6 +3,18 @@ $(function($) {
$(window).keydown(function(e) {
var hasFocus = $('input').is(':focus');
var hasFocus2 = $('textarea').is(':focus');
if(document.getElementById("webview")){
var webview=document.getElementById("webview");
if(webview.getURL()=="https://mobile.twitter.com/compose/tweet" || webview.getURL()=="https://mobile.twitter.com"){
if (e.keyCode === 8) {
webview.sendInputEvent({
type: "keyDown",
keyCode: '\u0008'
});
}
return false;
}
}
//Ctrl+Enter:投稿
if (event.metaKey || event.ctrlKey) {
if (e.keyCode === 13) {