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

Function registerDeleteKey

source/hand.js:95–104  ·  view source on GitHub ↗
(hand)

Source from the content-addressed store, hash-verified

93};
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};
105
106//==========//
107// KEYBOARD //

Callers 1

main.jsFile · 0.90

Calls 1

onkeydownFunction · 0.90

Tested by

no test coverage detected