mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 11:27:35 +00:00
Everywhere: codepoint => code point
This commit is contained in:
parent
a8ae8b24de
commit
12a42edd13
18 changed files with 240 additions and 240 deletions
|
@ -26,11 +26,11 @@ void EditEventHandler::handle_delete_character_after(const DOM::Position& cursor
|
|||
|
||||
auto& node = *static_cast<DOM::Text*>(const_cast<DOM::Node*>(cursor_position.node()));
|
||||
auto& text = node.data();
|
||||
auto codepoint_length = Utf8View(text).iterator_at_byte_offset(cursor_position.offset()).code_point_length_in_bytes();
|
||||
auto code_point_length = Utf8View(text).iterator_at_byte_offset(cursor_position.offset()).code_point_length_in_bytes();
|
||||
|
||||
StringBuilder builder;
|
||||
builder.append(text.substring_view(0, cursor_position.offset()));
|
||||
builder.append(text.substring_view(cursor_position.offset() + codepoint_length));
|
||||
builder.append(text.substring_view(cursor_position.offset() + code_point_length));
|
||||
node.set_data(builder.to_string());
|
||||
|
||||
m_frame.did_edit({});
|
||||
|
|
|
@ -379,10 +379,10 @@ bool EventHandler::focus_previous_element()
|
|||
return false;
|
||||
}
|
||||
|
||||
constexpr bool should_ignore_keydown_event(u32 codepoint)
|
||||
constexpr bool should_ignore_keydown_event(u32 code_point)
|
||||
{
|
||||
// FIXME: There are probably also keys with non-zero codepoints that should be filtered out.
|
||||
return codepoint == 0;
|
||||
// FIXME: There are probably also keys with non-zero code points that should be filtered out.
|
||||
return code_point == 0;
|
||||
}
|
||||
|
||||
bool EventHandler::handle_keydown(KeyCode key, unsigned modifiers, u32 code_point)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue