Bug 151663 - Web Inspector: CodeMirror's platform keymaps should match system-wide key bindings
Summary: Web Inspector: CodeMirror's platform keymaps should match system-wide key bin...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2015-11-30 10:35 PST by BJ Burg
Modified: 2016-12-13 15:35 PST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description BJ Burg 2015-11-30 10:35:11 PST
This seems like a substantial task if we want it to be cross-platform at all.

Below are some details on how Cocoa is configured with system-wide key bindings.
https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/EventOverview/TextDefaultsBindings/TextDefaultsBindings.html
Comment 1 Radar WebKit Bug Importer 2015-11-30 10:35:42 PST
<rdar://problem/23690419>
Comment 2 Darin Adler 2015-11-30 10:38:08 PST
Respecting this in WebKit was super-challenging; I expect this will be hard to do.

Being cross-platform isn’t the hard part; it’s easy to make a hard-coded version for the non-Apple platforms that matches the approach those platforms take to such things, since a system bindings file is a sort of unusual feature. The hard part is finding a way to pipe keyboard input through the public Cocoa APIs to figure out what editing operation to perform. There’s some internal interface that is a bit more flexible but even relying on that probably wouldn’t be a big help.

Probably not worth the effort :(