Last active
September 14, 2019 03:48
-
-
Save iamrommel/5942846 to your computer and use it in GitHub Desktop.
Revisions
-
iamrommel revised this gist
Jul 7, 2013 . 1 changed file with 7 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -21,4 +21,11 @@ void ScreenLayoutKeyUp(object sender, KeyEventArgs e) { this.Details.Dispatcher.BeginInvoke(AddTicket_Execute); } if (e.Key == Key.Tab && (Keyboard.Modifiers & ModifierKeys.Control) == ModifierKeys.Control) { //This is just a sample MessageBox.Show("CTRL + TAB trapped"); } } -
iamrommel created this gist
Jul 7, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,24 @@ partial void Tickets_Created() { this.FindControl("ScreenLayout").ControlAvailable += Tickets_ControlAvailable; } void Tickets_ControlAvailable(object sender, Microsoft.LightSwitch.Presentation.ControlAvailableEventArgs e) { var screenLayout = e.Control as System.Windows.Controls.Grid; if (screenLayout == null) return; screenLayout.KeyUp += ScreenLayoutKeyUp; } void ScreenLayoutKeyUp(object sender, KeyEventArgs e) { if (e.Key == Key.A && (Keyboard.Modifiers & (ModifierKeys.Control | ModifierKeys.Shift)) == (ModifierKeys.Control | ModifierKeys.Shift)) { this.Details.Dispatcher.BeginInvoke(AddTicket_Execute); } }