package.lisp 911 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. ;;;; package.lisp
  2. (defpackage #:boxes/keymap/key
  3. (:use #:cl)
  4. (:nicknames #:key)
  5. (:export #:normalize-key
  6. #:ensure-normalized-key
  7. #:key
  8. #:key=))
  9. (defpackage #:boxes/keymap
  10. (:nicknames #:keymap)
  11. (:use #:cl)
  12. (:import-from #:boxes/keymap/key
  13. #:key=
  14. #:ensure-normalized-key)
  15. (:export #:make-keymap
  16. #:parents
  17. #:binding
  18. #:own-keys
  19. #:all-keys
  20. #:key-bound-p
  21. #:ownp
  22. #:inheritedp
  23. #:key-source
  24. #:add-binding
  25. #:remove-binding
  26. #:install
  27. #:*global-keymap*))
  28. ;;; Auxiliary low-level package not intended to be used directly
  29. (defpackage #:boxes/keymap/global-keymap
  30. (:nicknames #:global-keymap)
  31. (:use #:cl)
  32. (:import-from #:boxes/keymap/key
  33. #:ensure-normalized-key)
  34. (:export #:add-binding
  35. #:remove-binding
  36. #:keys
  37. #:binding
  38. #:clear
  39. #:sync))