Don't toggle libraries-to-sync row on Enter

Otherwise if you close the dialog with Enter the current row (which is
probably the row you just changed) is toggled

Regression from HTMLification
This commit is contained in:
Dan Stillman 2021-08-25 02:25:31 -04:00
parent 4d88e99e9e
commit 0bbe064245

View file

@ -280,6 +280,9 @@ Zotero_Preferences.Sync = {
else {
div = document.createElementNS("http://www.w3.org/1999/xhtml", 'div');
div.className = "row";
div.addEventListener('dblclick', () => {
this.toggleLibraryToSync(index);
});
}
div.classList.toggle('selected', selection.isSelected(index));
@ -320,7 +323,6 @@ Zotero_Preferences.Sync = {
columns={columns}
staticColumns={true}
disableFontSizeScaling={true}
onActivate={Zotero_Preferences.Sync.toggleLibraryToSync.bind(this)}
onKeyDown={handleKeyDown}
/>
</IntlProvider>