mirror of
https://github.com/aseprite/aseprite.git
synced 2024-12-28 06:21:25 +00:00
Focus palette or tiles view when we select a set of colors/tiles
E.g. with this we can selected unused colors and then press Delete key to remove those colors.
This commit is contained in:
parent
2bc64cf5ff
commit
95a44f5d68
@ -487,6 +487,10 @@ void PaletteView::setSelectedEntries(const doc::PalettePicks& entries)
|
||||
m_selectedEntries = entries;
|
||||
m_selectedEntries.resize(m_adapter->size());
|
||||
m_currentEntry = m_selectedEntries.firstPick();
|
||||
|
||||
if (entries.picks() > 0)
|
||||
requestFocus();
|
||||
|
||||
invalidate();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user