buttons.lua 763 B

123456789101112131415161718192021222324252627
  1. -- Copyright 2008 Steven Barth <steven@midlink.org>
  2. -- Licensed to the public under the Apache License 2.0.
  3. m = Map("system", translate("Buttons"),
  4. translate("This page allows the configuration of custom button actions"))
  5. s = m:section(TypedSection, "button", "")
  6. s.anonymous = true
  7. s.addremove = true
  8. s:option(Value, "button", translate("Name"))
  9. act = s:option(ListValue, "action",
  10. translate("Action"),
  11. translate("Specifies the button state to handle"))
  12. act:value("released")
  13. s:option(Value, "handler",
  14. translate("Handler"),
  15. translate("Path to executable which handles the button event"))
  16. min = s:option(Value, "min", translate("Minimum hold time"))
  17. min.rmempty = true
  18. max = s:option(Value, "max", translate("Maximum hold time"))
  19. max.rmempty = true