mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-15 09:25:57 +00:00
fix x hotkey firing simultaneously with X
This commit is contained in:
@@ -743,10 +743,12 @@ function hotkey_handler(e) {
|
|||||||
|
|
||||||
if (keycode == 68 && shift_key) { // shift-D
|
if (keycode == 68 && shift_key) { // shift-D
|
||||||
dismissSelectedArticles();
|
dismissSelectedArticles();
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (keycode == 88 && shift_key) { // shift-X
|
if (keycode == 88 && shift_key) { // shift-X
|
||||||
dismissReadArticles();
|
dismissReadArticles();
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (keycode == 78 || keycode == 40) { // n, down
|
if (keycode == 78 || keycode == 40) { // n, down
|
||||||
@@ -814,9 +816,10 @@ function hotkey_handler(e) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (keycode == 88) { // x
|
if (keycode == 88 && !shift_key) { // x
|
||||||
if (activeFeedIsCat()) {
|
if (activeFeedIsCat()) {
|
||||||
dijit.byId("feedTree").collapseCat(getActiveFeedId());
|
dijit.byId("feedTree").collapseCat(getActiveFeedId());
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user