Skip to content

Commit

Permalink
lua/simple_shortcut - updated example to current API
Browse files Browse the repository at this point in the history
  • Loading branch information
wpferguson committed Apr 16, 2024
1 parent c47742e commit c806c9b
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit c806c9b

Please sign in to comment.