Ignore:
Timestamp:
Jul 20, 2009, 11:46:50 AM (11 years ago)
Author:
gb
Message:

Try to un-break the recent changes that led to ticket:562. Rather
than trying to determine whether or not a key-event is bound to
a "System Default Behavior" command, introduce HI:NATIVE-KEY-EVENT-P
(which is SETFable). The former approach broke ESCAPE (and other
things) because a "key" can actually be a sequence (involving prefixes,
etc.) and parsing that sequence is stateful.

There are still some issues with this approach (what happens if a "native
key event" is pressed while in the middle of a prefixed sequence ? Should
we clean up that state ?) but it avoids the stateful parsing issues, and
it may be more intuitive to say that something is a "native key event" than
it would be to say that it's bount to a magic Hemlock command that causes
it to be treated like one.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/cocoa-ide/hemlock/src/views.lisp

    r12422 r12430  
    209209           (invoke-command main-binding *last-prefix-argument*)))))))
    210210
    211 (defmethod bound-to-system-default-behavior-p ((view hemlock-view)
    212                                                key)
    213   (eq (get-command-binding-for-key view key)
    214       (hi::get-system-default-behavior-command)))
    215211
    216212
Note: See TracChangeset for help on using the changeset viewer.