improve clipboard handling (#596)
* improve clipboard handling * fix regression of not defocusing tool icons
This commit is contained in:
@ -37,7 +37,7 @@ export class ActionManager implements ActionsManagerInterface {
|
||||
action => action.keyTest && action.keyTest(event, elements, appState),
|
||||
);
|
||||
|
||||
if (data.length === 0) return {};
|
||||
if (data.length === 0) return null;
|
||||
|
||||
event.preventDefault();
|
||||
return data[0].perform(elements, appState, null);
|
||||
|
@ -45,7 +45,7 @@ export interface ActionsManagerInterface {
|
||||
event: KeyboardEvent,
|
||||
elements: readonly ExcalidrawElement[],
|
||||
appState: AppState,
|
||||
) => ActionResult | {};
|
||||
) => ActionResult | null;
|
||||
getContextMenuItems: (
|
||||
elements: readonly ExcalidrawElement[],
|
||||
appState: AppState,
|
||||
|
Reference in New Issue
Block a user