mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 09:46:22 +00:00
fix #2935
This commit is contained in:
@@ -88,6 +88,7 @@ class NoteList extends React.Component {
|
||||
this.importFromFileHandler = this.importFromFile.bind(this)
|
||||
this.jumpNoteByHash = this.jumpNoteByHashHandler.bind(this)
|
||||
this.handleNoteListKeyUp = this.handleNoteListKeyUp.bind(this)
|
||||
this.handleNoteListBlur = this.handleNoteListBlur.bind(this)
|
||||
this.getNoteKeyFromTargetIndex = this.getNoteKeyFromTargetIndex.bind(this)
|
||||
this.cloneNote = this.cloneNote.bind(this)
|
||||
this.deleteNote = this.deleteNote.bind(this)
|
||||
@@ -348,6 +349,13 @@ class NoteList extends React.Component {
|
||||
}
|
||||
}
|
||||
|
||||
handleNoteListBlur () {
|
||||
this.setState({
|
||||
shiftKeyDown: false,
|
||||
ctrlKeyDown: false
|
||||
})
|
||||
}
|
||||
|
||||
getNotes () {
|
||||
const { data, match: { params }, location } = this.props
|
||||
if (location.pathname.match(/\/home/) || location.pathname.match(/alltags/)) {
|
||||
@@ -1155,6 +1163,7 @@ class NoteList extends React.Component {
|
||||
tabIndex='-1'
|
||||
onKeyDown={(e) => this.handleNoteListKeyDown(e)}
|
||||
onKeyUp={this.handleNoteListKeyUp}
|
||||
onBlur={this.handleNoteListBlur}
|
||||
>
|
||||
{noteList}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user