Re: [code] [textadept] Events based on keys

From: Mitchell <m.att.foicica.com>
Date: Thu, 1 May 2014 10:14:41 -0400 (Eastern Daylight Time)

Hi Richard,

On Thu, 1 May 2014, Richard Philips wrote:

> Hi,
>
> events.KEYPRESS allows for handling events based on keypresses.
>
> I would like to handle events based on key chains.
> I know you can easily connect a function to a specific key chain. But I
> would like to connect to a function with the key chain as argument.
>
> Example:
>
> CTRL + SHIFT + DEL deletes until the end of the line. I would like to put
> the deleted text in the clipboard. (I accomplished this without a problem).
>
> Repeated CTRL+SHIFT+DEL should add to the clipboard.
>
> Any pointers on how to handle this?

If I'm understanding your question correctly, I think you should simply
define your own function that encapsulates the functionality of an
existing key, and then rebind to that key/keychain.

Cheers,
Mitchell

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Thu 01 May 2014 - 10:14:41 EDT

This archive was generated by hypermail 2.2.0 : Fri 02 May 2014 - 06:52:28 EDT