In SpreadJS, keyboard shortcuts behave differently depending on how they are mapped within the application. By default, the Ctrl + "-" shortcut is assigned to the deleteEntireRowOrColumn command. When a full row or column is selected, using this shortcut will delete the selected row or column.
There is no built-in shortcut assigned to Ctrl + "+" in SpreadJS. As a result, the browser handles this input and typically performs a zoom-in action.
If you want both Ctrl + "+" and Ctrl + "-" to control browser zoom (instead of triggering SpreadJS actions), you can disable the SpreadJS shortcut mapping for row/column deletion. This allows the browser to take over both shortcuts.
var designer = new GC.Spread.Sheets.Designer.Designer('dss');
var spread = designer.getWorkbook();
// Disable Ctrl + "-" shortcut for deleting rows/columns
spread.commandManager().setShortcutKey('deleteEntireRowOrColumn', null);
After applying this change, Ctrl + "+" and Ctrl + "-" will both function as browser zoom controls.
Kristina Ismail