MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / adjustUiZoom

Function adjustUiZoom

src/cm/commandRegistry.js:1413–1419  ·  view source on GitHub ↗
(delta)

Source from the content-addressed store, hash-verified

1411}
1412
1413function adjustUiZoom(delta) {
1414 const current = Number(settings?.value?.uiZoom) || 100;
1415 const next = Math.min(160, Math.max(70, current + delta));
1416 settings.value.uiZoom = next;
1417 settings.update(false);
1418 return true;
1419}
1420
1421function parseKeyString(keyString) {
1422 if (!keyString) return [];

Callers 1

registerCoreCommandsFunction · 0.85

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected