From: Mo DeJong <mdejong@cygnus.com>
To: sourcenav@sources.redhat.com
Subject: Re: rebinding editor keys
Date: Mon, 16 Jul 2001 11:09:00 -0000 [thread overview]
Message-ID: <Pine.SOL.3.91.1010716110550.18174C-100000@cse.cygnus.com> (raw)
In-Reply-To: <F44DIT6bB5Rw1SSfWXW00002bc1@hotmail.com>
On Mon, 16 Jul 2001, Left Spin wrote:
> I'm new to Tcl/Tk. I'm rebinding keystrokes for a text widget in Source
> Navigator.
>
> I'm trying to bind <Control-R> to a page up script.
The online Man page for bind might help in this case:
http://tcl.activestate.com/man/tcl8.3.2/TkCmd/bind.htm
Also:
http://tcl.activestate.com/man/tcl8.3.2/
> I have to admit I don't understand how this bind syntax works. I found it in
> some of the Source Navigator source code.
> I was thinking that maybe I could just map the keystroke to the already
> defined page up functionality.
Try it without all the SN stuff. Just start up a wish shell and
play around with it.
% wish
% text .t
.t
% pack .t
% bind .t <Control-r> {puts "linesperpage is [%W cget -height]"}
(Move mouse into text widget and press Ctrl-R)
linesperpage is 24
cheers
Mo
prev parent reply other threads:[~2001-07-16 11:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-07-16 10:58 Left Spin
2001-07-16 11:09 ` Mo DeJong [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.SOL.3.91.1010716110550.18174C-100000@cse.cygnus.com \
--to=mdejong@cygnus.com \
--cc=sourcenav@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).