mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) Add cut, copy, and paste to context menu
Summary: On supported browsers, the new context menu commands work exactly as they do via keyboard shortcuts. On unsupported browsers, an unavailable command modal is shown with a suggestion to use keyboard shortcuts instead. Test Plan: Browser tests. Reviewers: jarek Reviewed By: jarek Differential Revision: https://phab.getgrist.com/D3867
This commit is contained in:
@@ -33,7 +33,21 @@ setOptionsModifyFunc(({chromeOpts, firefoxOpts}) => {
|
||||
// Don't show popups to save passwords, which are shown when running against a deployment when
|
||||
// we use a login form.
|
||||
"credentials_enable_service": false,
|
||||
"profile.password_manager_enabled" : false,
|
||||
"profile": {
|
||||
content_settings: {
|
||||
exceptions: {
|
||||
clipboard: {
|
||||
'*': {
|
||||
// Grant access to the system clipboard. This applies to regular (non-headless)
|
||||
// Chrome. On headless Chrome, this has no effect.
|
||||
setting: 1,
|
||||
}
|
||||
},
|
||||
},
|
||||
},
|
||||
// Don't show popups to save passwords.
|
||||
password_manager_enabled: false,
|
||||
},
|
||||
|
||||
// These preferences are my best effort to set up "print to pdf" that saves into the test's temp
|
||||
// dir, based on discussion here: https://bugs.chromium.org/p/chromedriver/issues/detail?id=2821.
|
||||
|
||||
Reference in New Issue
Block a user