1. Fixed an issue where Alt-Shift-Q didn't work after creating a new query. Fixes #7575

2. Fixed an issue where the Query Editor loses focus when saving a query (Alt+s). Fixes #7521
3. Ensure that an error is thrown if clipboard access is not provided and change the copy rows shortcut. Fixes #7452
This commit is contained in:
Aditya Toshniwal
2022-08-17 17:23:11 +05:30
committed by Akshay Joshi
parent c8ef4733d0
commit 306b184e11
10 changed files with 55 additions and 21 deletions

View File

@@ -1,9 +1,11 @@
import Notifier from './helpers/Notifier';
export async function copyToClipboard(text) {
try {
await navigator.clipboard.writeText(text);
} catch {
} catch(err) {
/* Suppress error */
console.error('Does not have clipboard acccess');
Notifier.error('Does not have clipboard acccess');
}
localStorage.setItem('clipboard', text);
}

View File

@@ -269,6 +269,7 @@ export default function PgTable({ columns, data, isSelectRow, caveTable=true, sc
defaultColumn,
isSelectRow,
autoResetSortBy: false,
autoResetSelectedRows: false,
initialState: {
sortBy: sortOptions || [],
}