mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-03 21:10:30 +00:00
LibGUI: Focus the actively resizing end of GlyphMapWidget selections
This commit is contained in:
parent
673afffd5a
commit
d973d43b13
Notes:
sideshowbarker
2024-07-18 03:35:30 +09:00
Author: https://github.com/thankyouverycool Commit: https://github.com/SerenityOS/serenity/commit/d973d43b13 Pull-request: https://github.com/SerenityOS/serenity/pull/16566
1 changed files with 6 additions and 0 deletions
|
@ -276,6 +276,12 @@ void GlyphMapWidget::keydown_event(KeyEvent& event)
|
|||
m_selection.set_start(m_active_glyph);
|
||||
}
|
||||
|
||||
if (event.shift() && event.is_arrow_key()) {
|
||||
auto resizing_end = m_selection.start() + m_selection.size() - (m_selection.size() > 0 ? 1 : 0);
|
||||
set_active_glyph(resizing_end, ShouldResetSelection::No);
|
||||
scroll_to_glyph(resizing_end);
|
||||
}
|
||||
|
||||
int first_glyph = m_active_range.first;
|
||||
int last_glyph = m_active_range.last;
|
||||
auto selection = m_selection.normalized();
|
||||
|
|
Loading…
Reference in a new issue