feat(16-01): add selectAll() to SelectionController and dispatch shortcut:select-all event
- Add selectAll() method to SelectionController that selects all items via host interface
- Change app.selectAll dispatch from document.execCommand('selectAll') to CustomEvent('shortcut:select-all')
This commit is contained in:
@@ -270,7 +270,9 @@ async function dispatch(action: string): Promise<void> {
|
||||
|
||||
// App actions
|
||||
case 'app.selectAll':
|
||||
document.execCommand('selectAll');
|
||||
document.dispatchEvent(
|
||||
new CustomEvent('shortcut:select-all'),
|
||||
);
|
||||
break;
|
||||
|
||||
// Panel-specific: track list
|
||||
|
||||
Reference in New Issue
Block a user