[Update] Add hotkeys main functions

This commit is contained in:
Sakamoto Shiina
2025-01-17 02:41:27 +09:00
parent 34d221c437
commit bac7bb15d3
11 changed files with 145 additions and 57 deletions

View File

@@ -12,7 +12,13 @@ export const useHotkeys = () => {
const setHotkeys = (hotkeys) => {
pendingHotkeys();
asyncStdoutToPython("/set/data/hotkeys", hotkeys);
const send_obj = {
...currentHotkeys.data,
...hotkeys,
};
asyncStdoutToPython("/set/data/hotkeys", send_obj);
};
return {