Add() public method

public Add ( KeyCode code, Option option, System onKeyEvent ) : void
code KeyCode
option Option
onKeyEvent System
return void
Exemplo n.º 1
0
 private void InitializeArrowKeys()
 {
     keyEvent_.Add(KeyCode.UpArrow, Prev);
     keyEvent_.Add(KeyCode.DownArrow, Next);
     foreach (var k in new KeyCode[] { KeyCode.Home, KeyCode.End, KeyCode.LeftArrow, KeyCode.RightArrow })
     {
         keyEvent_.Add(k, StopCompletion);
     }
 }
Exemplo n.º 2
0
 private void InitializeArrowKeys()
 {
     keyEvent_.Add(KeyCode.UpArrow, Prev);
     keyEvent_.Add(KeyCode.DownArrow, Next);
     keyEvent_.Add(KeyCode.LeftArrow, StopCompletion);
     keyEvent_.Add(KeyCode.RightArrow, StopCompletion);
 }