Skip to content

Commit 9d2859d

Browse files
committed
Fixed issue with cmd key
1 parent 37c2124 commit 9d2859d

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

app/helpers/VersionHelper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ class VersionHelper {
55
//region Fields
66

77
private static _target : string = 'http://yimello.adriencadet.com/version';
8-
private static _version : string = '0.2.0';
8+
private static _version : string = '0.2.2';
99

1010
//endregion Fields
1111

app/presenters/MainPresenter/BookmarkList.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ class BookmarkList {
111111
if (TSObject.exists(this._keyboardEventObj)) {
112112
if (this._keyboardEventObj.getWhich() === 17
113113
|| this._keyboardEventObj.isMetaKey()) {
114+
this._keyboardEventObj = null;
114115
BookmarkDAO.find(
115116
e.getData('id'),
116117
(outcome) => {
@@ -241,6 +242,10 @@ class BookmarkList {
241242
);
242243
}
243244

245+
unfocus() : void {
246+
this._keyboardEventObj = null;
247+
}
248+
244249
//endregion Public Methods
245250

246251
//endregion Methods

app/presenters/MainPresenter/MainPresenter.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,10 @@ class MainPresenter
183183
this._tagList.resetList(() => this._tagList.selectMostPopular());
184184
this._bookmarkList.displayMostPopular();
185185
}
186+
187+
onPause() : void {
188+
this._bookmarkList.unfocus();
189+
}
186190

187191
//region IBookmarkFormSubscriber
188192

0 commit comments

Comments
 (0)