www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 8f3909713fa5b593bc96192060d89f6705a3b1c3
parent 4fb8f44d016c199f3b964ec4f7f4d326ccef9583
Author: Dan Stillman <dstillman@zotero.org>
Date:   Sun,  8 Oct 2017 17:59:40 -0400

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.

Diffstat:
Mchrome/content/zotero/bindings/styled-textbox.xml | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/chrome/content/zotero/bindings/styled-textbox.xml b/chrome/content/zotero/bindings/styled-textbox.xml @@ -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':