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:
parent
4d88e99e9e
commit
0bbe064245
1 changed files with 3 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue