This commit is contained in:
2008-03-13 12:56:39 +00:00
parent 859851d499
commit 2393798276
2 changed files with 8 additions and 6 deletions

View File

@@ -455,13 +455,15 @@ namespace Volian.Controls.Library
// add the character with its font depending on the char....
if (!IsControlChar)
{
if (e.KeyChar == '\b') return; // return on backspace.
// check for symbol - how??
AddRtf(e.KeyChar.ToString());
if (e.KeyChar == '\b') return; // return on backspace otherwise, get a block char
if (e.KeyChar == '-')
AddSymbol(@"\u8209?");
else
AddRtf(e.KeyChar.ToString());
e.Handled = true; // flag that it's been handled, otherwise, will get 2 chars.
}
IsControlChar = false;
}
e.Handled = true; // flag that it's been handled, otherwise, will get 2 chars.
}
#endregion
#endregion