mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
improve clipboard handling (#596)
* improve clipboard handling * fix regression of not defocusing tool icons
This commit is contained in:
parent
de68561df5
commit
26048ee469
4 changed files with 38 additions and 21 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue