mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) Fixing bug with first click on windows
Summary: On Windows, last row is selected when a user clicks the 'new row' while browser doesn't have focus. Test Plan: manual tests Reviewers: georgegevoian Reviewed By: georgegevoian Subscribers: georgegevoian Differential Revision: https://phab.getgrist.com/D3503
This commit is contained in:
@@ -26,3 +26,8 @@ export function isIOS() {
|
||||
export function modKeyProp(): 'metaKey'|'ctrlKey' {
|
||||
return /Mac|iPod|iPhone|iPad/.test(navigator.platform) ? 'metaKey' : 'ctrlKey';
|
||||
}
|
||||
|
||||
export function isWin() {
|
||||
const os = getParser().getOSName();
|
||||
return os === 'Windows';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user