Fixed Alt + Home

This commit is contained in:
Igor Zhukov 2014-09-22 15:59:31 +04:00
parent b4726218ed
commit 1a508faa84

View File

@ -269,7 +269,7 @@ angular.module('myApp.directives', ['myApp.filters'])
if (e.keyCode == 36 && !e.shiftKey && !e.ctrlKey && e.altKey) { // Alt + Home
var currentSelected = $(scrollableWrap).find('.im_dialog_wrap a');
if (currentSelected.length) {
currentSelected.trigger('mousedown');
$(currentSelected[0]).trigger('mousedown');
scrollableWrap.scrollTop = 0;
$(dialogsWrap).nanoScroller({flash: true});
}