Prevent conversation up/down when showing search results
This commit is contained in:
parent
79b9408f1f
commit
bb02fa3a7e
2 changed files with 7 additions and 4 deletions
|
@ -651,6 +651,7 @@
|
|||
const state = store.getState();
|
||||
const selectedId = state.conversations.selectedConversation;
|
||||
const conversation = ConversationController.get(selectedId);
|
||||
const isSearching = Signal.State.Selectors.search.isSearching(state);
|
||||
|
||||
// NAVIGATION
|
||||
|
||||
|
@ -798,7 +799,7 @@
|
|||
}
|
||||
|
||||
// Change currently selected conversation - up/down, to next/previous unread
|
||||
if (optionOrAlt && !shiftKey && key === 'ArrowUp') {
|
||||
if (!isSearching && optionOrAlt && !shiftKey && key === 'ArrowUp') {
|
||||
const unreadOnly = false;
|
||||
const targetId = findConversation(
|
||||
conversation ? conversation.id : null,
|
||||
|
@ -813,7 +814,7 @@
|
|||
return;
|
||||
}
|
||||
}
|
||||
if (optionOrAlt && !shiftKey && key === 'ArrowDown') {
|
||||
if (!isSearching && optionOrAlt && !shiftKey && key === 'ArrowDown') {
|
||||
const unreadOnly = false;
|
||||
const targetId = findConversation(
|
||||
conversation ? conversation.id : null,
|
||||
|
@ -828,7 +829,7 @@
|
|||
return;
|
||||
}
|
||||
}
|
||||
if (optionOrAlt && shiftKey && key === 'ArrowUp') {
|
||||
if (!isSearching && optionOrAlt && shiftKey && key === 'ArrowUp') {
|
||||
const unreadOnly = true;
|
||||
const targetId = findConversation(
|
||||
conversation ? conversation.id : null,
|
||||
|
@ -843,7 +844,7 @@
|
|||
return;
|
||||
}
|
||||
}
|
||||
if (optionOrAlt && shiftKey && key === 'ArrowDown') {
|
||||
if (!isSearching && optionOrAlt && shiftKey && key === 'ArrowDown') {
|
||||
const unreadOnly = true;
|
||||
const targetId = findConversation(
|
||||
conversation ? conversation.id : null,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue