Go to file
Andrey Lushnikov 329b34e894
feat: implement mac keyboard (#197)
This list contains all of the default keyboard shortcuts for macos, and the Objective-C selector that they trigger on the [NSStandardKeyBindingResponding](https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005237-moveleft?language=objc). We need these for basic keyboard functionality like ArrowUp and ArrowDown to work on WebKit for mac. For other browsers on mac, the same list can be used to enable better mac keyboard emulation.

The list was made by constructing NSEvents on a mac and seeing what selectors they triggered on an NSTextView. The conversion from NSEvents to DOM codes was done partially by hand as the code that does this conversion lives across many files in WebKit. There may be some errors or missing commands, but in general this should be a more faithful mac keyboard emulation than what we do in Chromium currently.

Notably absent from the list are Cut, Copy, Paste, Paste Special, Undo, and Redo. They are handled in a slightly different way.
2019-12-10 13:22:01 -08:00
.ci Initial commit 2019-11-19 10:58:15 -08:00
browser_patches browser(webkit): support keyboard on Mac & GTK (#196) 2019-12-10 10:39:40 -08:00
docs lint: follow up with lints 2019-12-06 12:04:11 -08:00
examples chore: prepare to npm publish (#148) 2019-12-05 11:29:16 -08:00
misc Initial commit 2019-11-19 10:58:15 -08:00
src feat: implement mac keyboard (#197) 2019-12-10 13:22:01 -08:00
test feat: implement mac keyboard (#197) 2019-12-10 13:22:01 -08:00
utils chore: remove unneeded files, reuse events between browsers, no implicit any (#191) 2019-12-10 11:15:14 -08:00
.appveyor.yml Initial commit 2019-11-19 10:58:15 -08:00
.cirrus.yml Initial commit 2019-11-19 10:58:15 -08:00
.editorconfig Initial commit 2019-11-19 10:58:15 -08:00
.eslintignore feat: basic d.ts file (#161) 2019-12-06 11:28:23 -08:00
.eslintrc.js lint: fixes (#85) 2019-11-26 08:19:02 -08:00
.gitignore chore: reuse BrowserFetcher between browsers (#177) 2019-12-08 13:29:03 -08:00
.npmignore feat: basic d.ts file (#161) 2019-12-06 11:28:23 -08:00
.travis.yml chore(ci): use bionic for travis 2019-12-05 15:18:55 -08:00
chromium.js feat: remove all environment variables and references to puppeteer-core (#47) 2019-11-21 21:17:23 -08:00
CODE_OF_CONDUCT.md Initial CODE_OF_CONDUCT.md commit 2019-11-15 10:32:47 -08:00
DeviceDescriptors.js Initial commit 2019-11-19 10:58:15 -08:00
Errors.js Initial commit 2019-11-19 10:58:15 -08:00
firefox.js feat: remove all environment variables and references to puppeteer-core (#47) 2019-11-21 21:17:23 -08:00
index.d.ts feat: basic d.ts file (#161) 2019-12-06 11:28:23 -08:00
index.js chore: prepare to npm publish (#148) 2019-12-05 11:29:16 -08:00
install.js fix(install): print version of the browser being downloaded (#146) 2019-12-05 08:30:58 -08:00
LICENSE Initial LICENSE commit 2019-11-15 10:32:48 -08:00
package.json feat: implement mac keyboard (#197) 2019-12-10 13:22:01 -08:00
README.md Revert "docs: show browser test stats in the readme (#24)" 2019-11-21 13:00:48 -08:00
SECURITY.md Initial SECURITY.md commit 2019-11-15 10:32:49 -08:00
tsconfig.json feat: basic d.ts file (#161) 2019-12-06 11:28:23 -08:00
webkit.js feat: remove all environment variables and references to puppeteer-core (#47) 2019-11-21 21:17:23 -08:00

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.