Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Save note on forward-delete when text is selected
This doesn't generate a keypress event for some reason, even though it
does when no text is selected.
  • Loading branch information
dstillman committed Oct 8, 2017
1 parent 4fb8f44 commit 8f39097
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions chrome/content/zotero/bindings/styled-textbox.xml
Expand Up @@ -416,6 +416,12 @@
this.redo();
return;
}
// Handle forward-delete, which doesn't register as a keypress
// when a selection is cleared
if (event.which == event.DOM_VK_DELETE) {
this._changed = true;
commandEvent = true;
}
break;
case 'keypress':
Expand Down

0 comments on commit 8f39097

Please sign in to comment.