Changes

Jump to navigation Jump to search

D2Editor:registerFilter

3 bytes added, 02:58, 26 May 2013
Line 11: Line 11:     
== Syntax  ==
 
== Syntax  ==
D2Editor.'''registerFilter'''([handlerTable])<br />
+
D2Editor.'''registerFilter'''(editor, [handlerTable])<br />
 
( or editor:'''registerFilter'''([handlerTable]) )
 
( or editor:'''registerFilter'''([handlerTable]) )
 
   
 
   
Line 32: Line 32:  
   tabKey = function() ed2:setFocus() return true end,
 
   tabKey = function() ed2:setFocus() return true end,
 
   charIn = function(ch) print(ch) return false end
 
   charIn = function(ch) print(ch) return false end
   arrowKey = function(key) print(arrowKey) return false end
+
   arrowKey = function(key) print(key) return false end
 
}</syntaxhighlight>
 
}</syntaxhighlight>
  

Navigation menu