#2924: Adding support for special-key handler in dialog field definition
-------------------------+--------------------------------------------------
Reporter: garry.yao | Owner:
Type: New Feature | Status: new
Priority: Normal | Milestone: CKEditor 3.0
Component: General | Version: SVN
Keywords: Confirmed |
-------------------------+--------------------------------------------------
It's a common use case for user to define custom logic as handler for
'''special-keystroke''' on dialog field, a example for this would be
'ENTER' key by default is handled as ''ok and close'' for the dialog,
whereas in find/replace dialog it actually should mean by ''perform next
search'', and consider 'ESC' as one of other cases and on.
After confirm with Martin, we'll introduce special key handlers in element
definition API in simple form of:
{{{
{
type: 'text',
id: 'findReplaceTxt',
accessKey: 'F',
onEnterKey: function(evt)
{
//do find
}
}
}}}
Other special keys could be defined gradually same as the '''onEnterKey'''
handler later when necessary.
--
Ticket URL: <http://dev.fckeditor.net/ticket/2924>
FCKeditor <http://www.fckeditor.net/>
The text editor for Internet
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac