[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: I want both keyboard-accelerated and conventional commands in
> Date: Thu, 9 Mar 89 15:22:36 EDT
> From: cogen@XN.LL.MIT.EDU (David Cogen)
>
> The documentation for DEFINE-PROGRAM-FRAMEWORK states (volume 7-A revised, page
> 97) that if :KBD-ACCELERATOR-P is T, to enter an unaccelerated command the user
> must first type colon or m-X. I don't get this behavior. Consider the following
> example program:
>
> (dw:define-program-framework test-frame
> :command-definer t
> :command-table (:inherit-from '("user") :kbd-accelerator-p t)
> :panes ((menu-window :command-menu)
> (interactor-window :interactor))
> :terminal-io-pane interactor-window
> :configurations
> '((main
> (:layout
> (main :column menu-window interactor-window))
> (:sizes
> (main (menu-window :ask-window self :size-for-pane menu-window)
> :then
> (interactor-window :even)))))
> :select-key #\a)
>
>Include "Colon Full Command" in the :INHERIT-FROM list. This command
>table provides colon, m-X, and c-m-Y. You may also want to include
>"Input Editor Compatibility", too; it provides a bunch of no-op commands
>(Space, Return, etc.) that can be used to cause redisplay.
>
> barmar
If your accelerators are all non letters (e.g., #\c-G), then you can
specify
:top-level (dw:default-command-top-level
:unknown-accelerator-is-command t)
This way you can type in commands without any prefix character. You
don't need "colon full command" in this case.
..................
... andreas ..:-).
..................