⚠️ Nightly build: This nightly-release may contain experimental features and breaking changes.
What's new
API: computer
- Implement
computer.getMousePosition(x, y)to update the current mouse cursor position. - Implement
computer.setMouseGrabbing(grabbing; boolean)to activate/deactivate confining the mouse cursor within the native app window. Ifgrabbingis set totrue, the mouse cursor always stays within the window boundaries, so this feature helps create interactive games and similar apps operated using the mouse. - Implement
computer.sendKey(keyCode, keyState)to simulate keyboard events. App developers can use a platform-specific key code and states (press,down, andup) to simulate from simple single key strokes to complex key combinations:
// Simulate letter 'a' press on GNU/Linux:
await Neutralino.computer.sendKey(38)
// Simulate Ctrl + V keyboard shortcut on GNU/Linux:
await Neutralino.computer.sendKey(105, 'down') // Hold right control
await Neutralino.computer.sendKey(47, 'down') // Hold letter 'v'
await Neutralino.computer.sendKey(47, 'up') // Release letter 'v'
await Neutralino.computer.sendKey(105, 'up') // Release right controlAPI: os
- Add
useTemplateIcon: booloption toos.setTray(options)for activating adaptive tray icon with the current color-scheme.
Improvements/bugfixes
- Display app icon properly with the
os.showNotification()function when the app is launched from a Mac app bundle. - Fix the window-ordering issue with
window.focus()on macOS. - Auto-focus the app window when the Mac dock app icon was clicked.
- Write full C++ exceptions to the terminal to improve the framework bug-reporting experience.
Update the config file option cli.binaryVersion with nightly and enter neu update to fetch this version.
Get started: https://neutralino.js.org/docs
This release was auto-generated by ReleaseZri 🚀