System.TermInfoDriver.IsSpecialKey C# (CSharp) Method

IsSpecialKey() public method

public IsSpecialKey ( ConsoleKeyInfo key ) : bool
key ConsoleKeyInfo
return bool
		public bool IsSpecialKey (ConsoleKeyInfo key)
		{
			if (!inited)
				return false;

			switch (key.Key) {
			case ConsoleKey.Backspace:
				return true;
			case ConsoleKey.Tab:
				return true;
			case ConsoleKey.Clear:
				return true;
			case ConsoleKey.Enter:
				cursorLeft = 0;
				cursorTop++;
				if (cursorTop >= WindowHeight) {
					cursorTop--;
					//TODO: scroll up
				}
				return false;
			default:
				// CStreamWriter will handle writing this key
				IncrementX ();
				return false;
			}
		}

Same methods

TermInfoDriver::IsSpecialKey ( char c ) : bool