mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
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:
committed by
Akshay Joshi
parent
c8ef4733d0
commit
306b184e11
@@ -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);
|
||||
}
|
||||
|
||||
@@ -269,6 +269,7 @@ export default function PgTable({ columns, data, isSelectRow, caveTable=true, sc
|
||||
defaultColumn,
|
||||
isSelectRow,
|
||||
autoResetSortBy: false,
|
||||
autoResetSelectedRows: false,
|
||||
initialState: {
|
||||
sortBy: sortOptions || [],
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user