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: Terry Ford <tmford at shaw dot ca>
Date: Fri, 29 Feb 2008 11:16:35 -0800
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <C3EDBAF0 dot B0702%ktekinay at mactechnologies dot com>
On Feb 29, 2008, at 10:36 AM, Kem Tekinay wrote:

> 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

Excellent.

I knew there had to be a simple way but never thought about adding a  
MenuHandler in a subclass.

Thank you very much.

Terry

_______________________________________________
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>