Motif virtual bindings
Motif virtual bindings
- Subject: Motif virtual bindings
- From: Rob Arthan <email@hidden>
- Date: Thu, 24 Apr 2003 12:30:37 +0100
- Organization: Lemma 1 Ltd.
I'm using Motif 2.2 on an iBook. The Motif 2.2 distributions don't seem to
come with virtual bindings that suit the iBook keyboard (or any other Apple
keyboard, as far as I can tell).
As my main Motif application includes a text editor, it is very inconvenient
not to have bindings for osfCut, osfCopy and osfPaste. Some of the others
like osfMenubar and osfMenu are also often useful.
I've based the attached virtual bindings file on the generic PC one. I
couldn't get the standard Apple key combinations for cut, copy and paste to
work (using Quartz-WM) - they should be available as Meta<Key>x, Meta<Key>c
and <Meta>Key according to xev. Am I right in guessing that Aqua is getting
in first and not passing these key combinations on to X?
My solution to the problem with the Meta key was to flip X, C and V over onto
slash, period and comma (so "cut" = "slash" :-)).
As I don't have any other Apple equipment, I'd be interested to know if what
I've done makes sense for other Apple keyboards or to hear any other
comments. (If you're not familiar with the file format or how to use it read
the manual pages for xmbind and VirtualBindings that come in the Motif
distribution).
Rob Arthan (email@hidden)
! $XConsortium: pc /main/4 1995/07/17 10:28:38 drk $
! @OPENGROUP_COPYRIGHT@
! COPYRIGHT NOTICE
! Copyright (c) 1990, 1991, 1992, 1993 Open Software Foundation, Inc.
! Copyright (c) 1996, 1997, 1998, 1999, 2000 The Open Group
! ALL RIGHTS RESERVED (MOTIF). See the file named COPYRIGHT.MOTIF for
! the full copyright text.
!
! This software is subject to an open license. It may only be
! used on, with or for operating systems which are themselves open
! source systems. You must contact The Open Group for a license
! allowing distribution and sublicensing of this software on, with,
! or for operating systems which are not Open Source programs.
!
! See http://www.opengroup.org/openmotif/license for full
! details of the license agreement. Any use, reproduction, or
! distribution of the program constitutes recipient's acceptance of
! this agreement.
!
! EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS
! PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
! KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY
! WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY
! OR FITNESS FOR A PARTICULAR PURPOSE
!
! EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT
! NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT,
! INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
! DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED
! AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
! LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
! ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE
! EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE
! POSSIBILITY OF SUCH DAMAGES.
!
! HISTORY
!
! Generic OSF/Motif Style Guide bindings for PC keyboards
!
! Adapted by Rob Arthan (email@hidden) to suit
! Motif applications, particularly xpp, on Apple Mac OS X iBooks.
! The important changes give mappings for Insert, Delete,
! Cut, Copy and Paste. Less importantly, but handy, the
! changes give bindings for Menu and MenuBar.
! The traditional Apple alphabetic for Cut, Copy and Paste conflict
! with things you need to do in xpp (but perhaps with a different
! modifier e.g., Ctrl-X means "execute selection" in xpp).
! The mapping below transposes these functions to the
! other end of the bottom row of keys - which means that Cut has
! the tiny mnemonic advantage of being the slash key).
!
! Rob Arthan (email@hidden) 20/4/2003
!
osfActivate : <Key>KP_Enter
osfCancel : <Key>Escape
osfMenuBar : <Key>F10
osfMenu : Shift <Key>F10
osfHelp : <Key>F1
osfBackSpace : <Key>BackSpace
osfInsert : <Key>F9
osfDelete : Shift <Key>BackSpace
osfPageUp : <Key>Prior
osfPageDown : <Key>Next
osfPageLeft : Ctrl <Key>Prior
osfPageRight : Ctrl <Key>Next
osfEndLine : <Key>End
osfBeginLine : <Key>Home
osfLeft : <Key>Left
osfRight : <Key>Right
osfUp : <Key>Up
osfDown : <Key>Down
osfAddMode : Shift <Key>F8
osfCut : Ctrl <Key>slash
osfCopy : Ctrl <Key>period
osfPaste : Ctrl <Key>comma
osfPrimaryPaste :Shift Ctrl <Key>comma
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/x11-users
X11 for Mac OS X FAQ: http://developer.apple.com/qa/qa2001/qa1232.html
Report issues, request features, feedback: http://developer.apple.com/bugreporter
Do not post admin requests to the list. They will be ignored.