|
keydown
|
|
Full name
|
pfc_u_lvs.keydown
|
Access
|
public
|
Extend of
|
|
Return value
|
|
Prototype
|
event keydown(keycode,unsignedlong)
|
event keydown;//////////////////////////////////////////////////////////////////////////////
//
// Event: keydown
//
// Arguments:
// key key pressed down
// keyflags alt or ctrl pressed
//
// Description: Catch the delete key and let pfc handle the delete versus the
// built in listview deletekey processing
//
//////////////////////////////////////////////////////////////////////////////
//
// Revision History
//
// Version
// 6.0 Initial version
//
//////////////////////////////////////////////////////////////////////////////
//
// Copyright © 1996-1997 Sybase, Inc. and its subsidiaries. All rights reserved.
// Any distribution of the PowerBuilder Foundation Classes (PFC)
// source code by other than Sybase, Inc. and its subsidiaries is prohibited.
//
//////////////////////////////////////////////////////////////////////////////
If KeyFlags = 0 then
If Key = KeyDelete! then
// we can delete through the keyboard if true
if this.deleteitems then
// this stops any other messages from being fired by this event action
message.processed = true
// let the pfc delete event delete the item - not the listview
this.event pfc_deleteitem()
End if
End IF
End If
end event