Lisp HUG Maillist Archive

INTERFACE-KEYS-STYLE

If I use the following code in LWW 4.4.6

  (capi:define-interface foo ()
    ()
    (:panes
     (editor-pane
      capi:editor-pane)))

  (defmethod capi:interface-keys-style ((interface foo))
    :pc)

  (capi:contain (make-instance 'foo))

the editor pane that's displayed still uses Emacs key bindings (which
is the setting for my IDE).  I thought that INTERFACE-KEYS-STYLE can
be used to change this.

What am I doing wrong?

Thanks,
Edi.


Re: INTERFACE-KEYS-STYLE

Hello Edi,

| If I use the following code in LWW 4.4.6
|
|   (capi:define-interface foo ()
|     ()
|     (:panes
|      (editor-pane
|       capi:editor-pane)))
|
|   (defmethod capi:interface-keys-style ((interface foo))
|     :pc)
|
|   (capi:contain (make-instance 'foo))
|
| the editor pane that's displayed still uses Emacs key bindings (which
| is the setting for my IDE).  I thought that INTERFACE-KEYS-STYLE can
| be used to change this.
|
| What am I doing wrong?

In my understanding, specializing interface-keys-style only controls general
editor behavior, e.g. availability menus via the Alt key etc. But you should
provide the editor with key bindings (global or for the buffer) yourself,
e.g. by loading msw-key-binds.lisp.
--
Sincerely,
Dmitriy Ivanov
lisp.ystok.ru


Updated at: 2020-12-10 08:50 UTC