Added
- Spoons that export
bindingsget anunbindHotkeys()method, to unbind some or all of the hotkeys bound withbindHotkeys()(#451) hs.canvas.create(),setFrame(),setTopLeft()andhs.ui.window()accept anHSRect/HSPoint, so a window's or screen'sframecan be passed directly (#454)hs.window.forID(id), which returns the window with that ID (ornull), like v1'shs.window.get()(#457)- Menu items in
hs.menubarmenus andhs.choosercontext menus can show a keyboard shortcut with ashortcutfield, e.g.shortcut: "⇧⌘N", which chooses the item while the menu is open (it is not a system-wide hotkey; the Dock ignores it inhs.dockiconmenus) (#456)
Changed
hs.canvasandhs.ui.window()now place windows withy = 0at the top of the primary screen, matchinghs.screen,hs.windowand v1. Scripts that converted from bottom-up coordinates need to drop that conversion (#454)- The rect passed to
hs.ui.window()now covers the whole window, including its title bar, likehs.window'sframe(#454) hs.task.runAsync()andhs.task.shell()now reject with anError(with a usefulmessage) when the command fails, still carryingexitCode,stdout,stderrandreason(#458)
Fixed
HSImage.croppedCopy()now measuresyfrom the top of the image, matching screen and window frames, instead of from the bottom (#452)- A canvas placed over the menu bar is no longer pushed down below it (#454)
- A borderless
hs.ui.window()placed over the menu bar is no longer pushed down below it (#454)
Full Changelog: 1.0.0-beta.2...1.0.0-beta.3