private void TextBox_MouseWheel(object sender, MouseWheelEventArgs e) { if (KeydownManager.Keydown(Key.LeftCtrl)) { int fontChange = (e.Delta / 100); if (ViewModel.Notepad.DocumentFormat.Size > 1) { ViewModel.Notepad.DocumentFormat.Size += fontChange; } if (ViewModel.Notepad.DocumentFormat.Size == 1 && fontChange >= 1) { ViewModel.Notepad.DocumentFormat.Size += fontChange; } } }
private void Window_KeyUp(object sender, KeyEventArgs e) { KeydownManager.SetKeyUp(e.Key); }