realbasic-nug
[Top] [All Lists]

Re: Disabling the F4 Key

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Disabling the F4 Key
From: Kem Tekinay <ktekinay at mactechnologies dot com>
Date: Fri, 29 Feb 2008 13:36:48 -0500
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
Thread-index: Ach7Agq3UyBVRDjdIk2BI5kMEcbt+w==
Thread-topic: Disabling the F4 Key
On 2/29/08 1:20 PM, Terry Ford at tmford at shaw dot ca wrote:

> Does anyone know of a simple way to disable the F4 key's new built in
> paste in an Editfield without resorting to disabling Command-V at the
> same time.

Create a subclass that handles "EditPaste", then use this code:

  if Keyboard.AsyncKeyDown( &h76 ) then
    return true // Stops F4
  else
    return false // Proceed with paste
  end if

See the Language Reference regarding Keyboard.

__________________________________________________________________________
Kem Tekinay                                                 (212) 201-1465
MacTechnologies Consulting                              Fax (914) 242-7294
http://www.mactechnologies.com                        Pager (917) 491-5546

  To join the MacTechnologies Consulting mailing list, send an e-mail to:
           mactechnologies_consulting-subscribe at yahoogroups dot com








_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>