Improves filter. Still problems with filter and preview.

This commit is contained in:
Lars Jung 2012-09-14 23:24:22 +02:00
parent 27c598d96e
commit 842bca74f9
5 changed files with 32 additions and 6 deletions

View file

@ -205,6 +205,9 @@ modulejs.define('ext/preview-txt', ['_', '$', 'core/settings', 'core/resource',
} else if (key === 13 || key === 32 || key === 38 || key === 39) { // enter, space, up, right
onNext();
}
event.stopImmediatePropagation();
return false;
},
initEntry = function (entry) {
@ -240,7 +243,6 @@ modulejs.define('ext/preview-txt', ['_', '$', 'core/settings', 'core/resource',
$('#pv-txt-bar-prev').on('click', onPrevious);
$('#pv-txt-bar-next').on('click', onNext);
$('#pv-txt-bar-close, #pv-txt-close').on('click', onExit);
$('#pv-txt-overlay').on('keydown', onKeydown);
$('#pv-txt-close')
.on('mouseenter', function () {
@ -252,9 +254,11 @@ modulejs.define('ext/preview-txt', ['_', '$', 'core/settings', 'core/resource',
$('#pv-txt-overlay')
.on('keydown', onKeydown)
.on('click mousedown mousemove keydown keypress', function (event) {
event.stopPropagation();
event.stopImmediatePropagation();
return false;
});
event.sub('entry.created', function (entry) {