FAQ

如何通过 esc 键退出 hydra

使用 <escape> 按键配置

1
2
3
4
5
6
7
8
9
(defhydra hydra-root (:color blue)
  "
  _a_: some-action
  _b_: another-action
  "
  ("a" some-action)
  ("b" another-action)
  ("<escape>" nil "quit" :exit t)
  )