MCPcopy Create free account
hub / github.com/TodePond/ScreenPond / deleteSelectedScreen

Function deleteSelectedScreen

source/hand.js:96–101  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

94
95export const registerDeleteKey = (hand) => {
96 function deleteSelectedScreen() {
97 if (hand.selectedAddress === undefined) return;
98 removeScreenAddress(hand.selectedAddress);
99 hand.selectedAddress = undefined;
100 clearQueue(global.show.context, global.queue, global.world);
101 }
102 onkeydown("Delete", deleteSelectedScreen);
103 onkeydown("Backspace", deleteSelectedScreen);
104};

Callers

nothing calls this directly

Calls 2

removeScreenAddressFunction · 0.90
clearQueueFunction · 0.90

Tested by

no test coverage detected