File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -88,6 +88,7 @@ class NoteList extends React.Component {
88
88
this . importFromFileHandler = this . importFromFile . bind ( this )
89
89
this . jumpNoteByHash = this . jumpNoteByHashHandler . bind ( this )
90
90
this . handleNoteListKeyUp = this . handleNoteListKeyUp . bind ( this )
91
+ this . handleNoteListBlur = this . handleNoteListBlur . bind ( this )
91
92
this . getNoteKeyFromTargetIndex = this . getNoteKeyFromTargetIndex . bind ( this )
92
93
this . cloneNote = this . cloneNote . bind ( this )
93
94
this . deleteNote = this . deleteNote . bind ( this )
@@ -348,6 +349,13 @@ class NoteList extends React.Component {
348
349
}
349
350
}
350
351
352
+ handleNoteListBlur ( ) {
353
+ this . setState ( {
354
+ shiftKeyDown : false ,
355
+ ctrlKeyDown : false
356
+ } )
357
+ }
358
+
351
359
getNotes ( ) {
352
360
const { data, match : { params } , location } = this . props
353
361
if ( location . pathname . match ( / \/ h o m e / ) || location . pathname . match ( / a l l t a g s / ) ) {
@@ -1155,6 +1163,7 @@ class NoteList extends React.Component {
1155
1163
tabIndex = '-1'
1156
1164
onKeyDown = { ( e ) => this . handleNoteListKeyDown ( e ) }
1157
1165
onKeyUp = { this . handleNoteListKeyUp }
1166
+ onBlur = { this . handleNoteListBlur }
1158
1167
>
1159
1168
{ noteList }
1160
1169
</ div >
You can’t perform that action at this time.
0 commit comments