1
0
mirror of http://git.whoc.org.uk/git/password-manager.git synced 2024-11-14 08:19:02 +01:00

Disabled search shortcut when in edit mode

This commit is contained in:
Giulio Cesare Solaroli 2015-02-03 18:24:49 +01:00
parent 34bf41228d
commit 9dec5ece43

View File

@ -1506,9 +1506,13 @@ console.log("THE BROWSER IS OFFLINE");
focusOnSearch: function (anEvent) { focusOnSearch: function (anEvent) {
anEvent.preventDefault(); anEvent.preventDefault();
MochiKit.Signal.signal(Clipperz.Signal.NotificationCenter, 'toggleSelectionPanel'); if (this.pages()[this.currentPage()].props['mode'] == 'edit') {
MochiKit.DOM.getElement('searchValue').focus(); // pass
MochiKit.DOM.getElement('searchValue').select(); } else {
MochiKit.Signal.signal(Clipperz.Signal.NotificationCenter, 'toggleSelectionPanel');
MochiKit.DOM.getElement('searchValue').focus();
MochiKit.DOM.getElement('searchValue').select();
}
}, },
exitSearch_handler: function (anEvent) { exitSearch_handler: function (anEvent) {