2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

ctrl+pageup/pagedown/tab/shift+tab now work in search results

This commit is contained in:
John Preston
2014-08-22 11:41:39 +04:00
parent 7bff0bcdb2
commit ceb899b69b
5 changed files with 149 additions and 61 deletions

View File

@@ -998,18 +998,26 @@ void MainWidget::showPeer(const PeerId &peerId, MsgId msgId, bool back, bool for
}
}
}
dialogs.scrollToPeer(peerId);
dialogs.scrollToPeer(peerId, msgId);
dialogs.update();
}
PeerData *MainWidget::peerBefore(const PeerData *peer) {
if (selectingPeer()) return 0;
return dialogs.peerBefore(peer);
void MainWidget::peerBefore(const PeerData *inPeer, MsgId inMsg, PeerData *&outPeer, MsgId &outMsg) {
if (selectingPeer()) {
outPeer = 0;
outMsg = 0;
return;
}
dialogs.peerBefore(inPeer, inMsg, outPeer, outMsg);
}
PeerData *MainWidget::peerAfter(const PeerData *peer) {
if (selectingPeer()) return 0;
return dialogs.peerAfter(peer);
void MainWidget::peerAfter(const PeerData *inPeer, MsgId inMsg, PeerData *&outPeer, MsgId &outMsg) {
if (selectingPeer()) {
outPeer = 0;
outMsg = 0;
return;
}
dialogs.peerAfter(inPeer, inMsg, outPeer, outMsg);
}
PeerData *MainWidget::peer() {