[unix keyboard handling]
- From: Drazen Kacar <dave srce hr>
- To: gtk-list redhat com
- Subject: [unix keyboard handling]
- Date: Wed, 24 Mar 1999 00:40:53 +0100
This is forwarded from AbiWord development list. Could someone with
enough knowledge comment on this?
Send a copy to abiword-dev@postman.abisource.com. Thanks.
----- Forwarded message from Jeff Hostetler <jeff@abisource.com> -----
i added code to query the system for the ModifierMask
for the ALT keys and to use it in the keybinding
mechanism rather than rely on ALT being mapped to MOD1.
btw, GTK is hard coded to use MOD1 as the accelerator
for the underlined letters on the menu bar. this i
cannot change.
shaw and i have updated the menu bar code not underline
(and not trigger menu events) when a keybinding (like
ALT-f in emacs mode) is defined (and when ALT is bound
to MOD1).
jeff
ps. does anyone know if GTK propagates MappingNotify
events. i looked at the code briefly and it looked
like it just ate.... (without this we won't respond
to changes via xmodmap while running....)
At 12:13 PM 3/20/99 +0100, Drazen Kacar wrote:
>Your keyboard shortcut for Exit in the file menu is not implemented
>correctly. The menu says that the shortcut is Alt+F4 (BTW, I'd be
>happier if this was Alt+Q), but when I press ALT+F4 nothing happens.
>Because the shortcut is actually Mod1+F4. On my keyboard ALt key
>has Alt_L KeySym and Mod4 modifier. There are two Meta keys with
>Meta_L & Meta_R KeySyms and Mod1, so this shortcut actually works
>with any of them. It's kind of confusing for an average user.
>Netscape's shortcuts work with both Alt and Meta. Since Motif allows
>menu entries to have only one shortcut, Netscape uses translations
>instead of shortcuts. If you don't intend to use Alt and Meta
>combinations for different things, think about this.
----- End forwarded message -----
--
.-. .-. Life is a sexually transmitted disease.
(_ \ / _)
| dave@srce.hr
| dave@fly.cc.fer.hr
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]