Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions content/lua/simple-shortcut.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ darktable.print("Hello, I just received '"..event..
"' with parameter '"..shortcut.."'")
end

darktable.register_event("shortcut",hello_shortcut,
darktable.register_event("example_program","shortcut",hello_shortcut,
"A shortcut that prints its parameters")
```

Expand All @@ -31,7 +31,7 @@ Let's try a shortcut that is a little more interactive. This one will look at th
```
darktable = require "darktable"

darktable.register_event("shortcut",function(event,shortcut)
darktable.register_event("another_example_program","shortcut",function(event,shortcut)
local images = darktable.gui.action_images
for _,v in pairs(images) do
v.rating = v.rating + 1
Expand Down