[webkit-changes] [WebKit/WebKit] 57c6ca: [GTK] Use std::array and ASCIILiteral in KeyBindin...
Adrian Perez
noreply at github.com
Mon Oct 28 19:04:57 PDT 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 57c6ca3ab9ef6ce3b417d127ff0f592ce6493adc
https://github.com/WebKit/WebKit/commit/57c6ca3ab9ef6ce3b417d127ff0f592ce6493adc
Author: Adrian Perez de Castro <aperez at igalia.com>
Date: 2024-10-28 (Mon, 28 Oct 2024)
Changed paths:
M Source/WebKit/UIProcess/gtk/KeyBindingTranslator.cpp
Log Message:
-----------
[GTK] Use std::array and ASCIILiteral in KeyBindingTranslator.cpp
https://bugs.webkit.org/show_bug.cgi?id=282170
Reviewed by Michael Catanzaro.
Convert gtkDeleteCommands, gtkMoveCommands, customKeyBindings, and
predefinedKeyBindings to use std::array, containing ASCIILiteral values
where appropriate.
* Source/WebKit/UIProcess/gtk/KeyBindingTranslator.cpp:
(WebKit::deleteFromCursorCallback): Remove comment about array bounds
checking now that they are using std::array.
(WebKit::handleKeyBindingsForMap): Receive a std::span instead of a raw
pointer and item count.
(WebKit::handleCustomKeyBindings): Adapt to pass a std::span.
(WebKit::KeyBindingTranslator::commandsForKeyval): Ditto.
Canonical link: https://commits.webkit.org/285804@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list