shortcuts: remove blocking of some alpha characters

master
Andrew Dolgov 17 years ago
parent 3a40e8a2ed
commit 19d7bfcd1d

@ -974,7 +974,6 @@ function hotkey_handler(e) {
document.getElementById('debug_output').style.display = 'none'; document.getElementById('debug_output').style.display = 'none';
} }
debug_mode_enabled = !debug_mode_enabled;
return; return;
} }
@ -995,7 +994,7 @@ function hotkey_handler(e) {
if (keycode == 82 && shift_key) { // R if (keycode == 82 && shift_key) { // R
scheduleFeedUpdate(true); scheduleFeedUpdate(true);
return false; return;
} }
if (keycode == 82) { // r if (keycode == 82) { // r
@ -1009,37 +1008,37 @@ function hotkey_handler(e) {
var feed = getActiveFeedId(); var feed = getActiveFeedId();
var new_feed = getRelativeFeedId(feedlist, feed, 'prev'); var new_feed = getRelativeFeedId(feedlist, feed, 'prev');
if (new_feed) viewfeed(new_feed, ''); if (new_feed) viewfeed(new_feed, '');
return false; return;
} }
if (keycode == 75) { // k if (keycode == 75) { // k
var feed = getActiveFeedId(); var feed = getActiveFeedId();
var new_feed = getRelativeFeedId(feedlist, feed, 'next'); var new_feed = getRelativeFeedId(feedlist, feed, 'next');
if (new_feed) viewfeed(new_feed, ''); if (new_feed) viewfeed(new_feed, '');
return false; return;
} }
if (shift_key && (keycode == 78 || keycode == 40)) { // shift - n, down if (shift_key && (keycode == 78 || keycode == 40)) { // shift - n, down
catchupRelativeToArticle(1); catchupRelativeToArticle(1);
return false; return;
} }
if (shift_key && (keycode == 80 || keycode == 38)) { // shift - p, up if (shift_key && (keycode == 80 || keycode == 38)) { // shift - p, up
catchupRelativeToArticle(0); catchupRelativeToArticle(0);
return false; return;
} }
if (keycode == 78 || keycode == 40) { // n, down if (keycode == 78 || keycode == 40) { // n, down
if (typeof moveToPost != 'undefined') { if (typeof moveToPost != 'undefined') {
moveToPost('next'); moveToPost('next');
return false; return;
} }
} }
if (keycode == 80 || keycode == 38) { // p, up if (keycode == 80 || keycode == 38) { // p, up
if (typeof moveToPost != 'undefined') { if (typeof moveToPost != 'undefined') {
moveToPost('prev'); moveToPost('prev');
return false; return;
} }
} }
@ -1048,7 +1047,7 @@ function hotkey_handler(e) {
if (id) { if (id) {
togglePub(id); togglePub(id);
} }
return false; return;
} }
if (keycode == 83) { // s if (keycode == 83) { // s
@ -1056,7 +1055,7 @@ function hotkey_handler(e) {
if (id) { if (id) {
toggleMark(id); toggleMark(id);
} }
return false; return;
} }
@ -1065,14 +1064,14 @@ function hotkey_handler(e) {
if (id) { if (id) {
toggleUnread(id); toggleUnread(id);
} }
return false; return;
} }
if (keycode == 84 && shift_key) { // T if (keycode == 84 && shift_key) { // T
var id = getActiveArticleId(); var id = getActiveArticleId();
if (id) { if (id) {
editArticleTags(id, getActiveFeedId(), isCdmMode()); editArticleTags(id, getActiveFeedId(), isCdmMode());
return false; return;
} }
} }
@ -1092,7 +1091,7 @@ function hotkey_handler(e) {
if (keycode == 79) { // o if (keycode == 79) { // o
if (getActiveArticleId()) { if (getActiveArticleId()) {
openArticleInNewWindow(getActiveArticleId()); openArticleInNewWindow(getActiveArticleId());
return false; return;
} }
} }

Loading…
Cancel
Save