[Webkit-unassigned] [Bug 270578] Web Inspector: cannot type Option-D with certain keyboard layout in console

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Mar 14 09:20:47 PDT 2024


--- Comment #6 from i at xiaolin.wang ---
(In reply to Razvan Caliman from comment #4)
> (In reply to Alexey Proskuryakov from comment #1)
> > I think that this can be reproduced even without installing this keyboard.
> > With U.S. keyboard, Option-D normally produces "∂", but nothing in Web
> > Inspector console.
> The Console prompt uses the Codemirror editor.
> Option-D (aka Alt-D) is a keyboard shortcut which deletes text from the
> cursor to the end of the word:
> https://github.com/WebKit/WebKit/blob/
> fbe4a30494efb2f9a31d2a6c2866780889869737/Source/WebInspectorUI/UserInterface/
> External/CodeMirror/codemirror.js#L6321
> There are many other keyboard shortcuts which will run editor actions
> instead of typing in a character.
> The reason you don't see the effect is probably because you're trying to
> type the dollar sign at the start of an empty line.
> I don't know if Web Inspector can detect keyboard layout.

I found a GitHub issue in CodeMirror's repo that addresses the same problem:  https://github.com/codemirror/codemirror5/issues/6630

Option-D, Option-F and Option-B are legacy emacs shortcuts that no longer work on modern Macs.

CodeMirror already removed Option-D, Option-F and Option-B bindings in https://github.com/codemirror/codemirror5/pull/6631, so the latest CodeMirror does not have this problem.

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240314/00ecca21/attachment.htm>

More information about the webkit-unassigned mailing list