按下 F11 时如何使我的跷跷板程序全屏?(不仅仅是最大化)
我目前有这个:
(defn toggle-full-screen [e]
(-> (to-root e)
magic!)
(def full-screen-action (action :name "Full Screen" :tip "Full Screen"
:mnemonic \f :key (keystroke "F11")
:handler toggle-full-screen))
(def view-menu (menu :text "View"
:mnemonic \v
:items [full-screen-action]))
(def top-menubar (menubar :items [view-menu]))
[...]
toggle-full-screen
按下 F11 时运行,但是我不知道如何使框架全屏显示。