mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:37:34 +00:00
CharacterMap+FontEditor: Switch current Unicode block on arrow press
This commit is contained in:
parent
17f9d3d45e
commit
cef595aa5c
2 changed files with 4 additions and 2 deletions
|
@ -125,7 +125,8 @@ CharacterMapWidget::CharacterMapWidget()
|
|||
};
|
||||
|
||||
auto unicode_blocks = Unicode::block_display_names();
|
||||
m_unicode_block_listview->on_activation = [this, unicode_blocks](auto& index) {
|
||||
m_unicode_block_listview->on_selection_change = [this, unicode_blocks] {
|
||||
auto index = m_unicode_block_listview->selection().first();
|
||||
if (index.row() > 0)
|
||||
m_range = unicode_blocks[index.row() - 1].code_point_range;
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue