parsav  Diff

Differences From Artifact [76c21b64a1]:

To Artifact [c1f304b23e]:


    59     59   				if (event.key == 'f') { // fave
    60     60   					postReq(root, 'like', post.querySelector('.stats>.like'))
    61     61   				} else if (event.key == 'r') { // rt
    62     62   					postReq(root, 'rt', post.querySelector('.stats>.rt'))
    63     63   				} else if (event.key == 'Enter') { // nav
    64     64   					window.location = root;
    65     65   					return;
           66  +				} else if (event.key == 'u' && root != cururl) {
           67  +					window.location = cururl; // detweet TODO don't try to delete other's retweets
    66     68   				} else if (post.attributes.getNamedItem('data-own')) {
    67     69   					if      (event.key == 'd') { window.location = root + '/del';  }
    68     70   					else if (event.key == 'e') { window.location = root + '/edit'; }
    69         -					else if (event.key == 'u' && root != cururl) { window.location = cururl; } // detweet
    70     71   				}
    71     72   			}
    72     73   			if (nexturl != null) {
    73     74   				if (cururl != null) {
    74     75   					let cur = window._liveTweetMap.map.get(cururl);
    75     76   					cur.me.classList.remove('live-selected')
    76     77   				}