Skip to content

Commit 59f8425

Browse files
alwxkxkRokt33r
authored andcommitted
fix #2935
1 parent f181a7e commit 59f8425

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

browser/main/NoteList/index.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ class NoteList extends React.Component {
8888
this.importFromFileHandler = this.importFromFile.bind(this)
8989
this.jumpNoteByHash = this.jumpNoteByHashHandler.bind(this)
9090
this.handleNoteListKeyUp = this.handleNoteListKeyUp.bind(this)
91+
this.handleNoteListBlur = this.handleNoteListBlur.bind(this)
9192
this.getNoteKeyFromTargetIndex = this.getNoteKeyFromTargetIndex.bind(this)
9293
this.cloneNote = this.cloneNote.bind(this)
9394
this.deleteNote = this.deleteNote.bind(this)
@@ -348,6 +349,13 @@ class NoteList extends React.Component {
348349
}
349350
}
350351

352+
handleNoteListBlur () {
353+
this.setState({
354+
shiftKeyDown: false,
355+
ctrlKeyDown: false
356+
})
357+
}
358+
351359
getNotes () {
352360
const { data, match: { params }, location } = this.props
353361
if (location.pathname.match(/\/home/) || location.pathname.match(/alltags/)) {
@@ -1155,6 +1163,7 @@ class NoteList extends React.Component {
11551163
tabIndex='-1'
11561164
onKeyDown={(e) => this.handleNoteListKeyDown(e)}
11571165
onKeyUp={this.handleNoteListKeyUp}
1166+
onBlur={this.handleNoteListBlur}
11581167
>
11591168
{noteList}
11601169
</div>

0 commit comments

Comments
 (0)