109
109
Screen.Default.CompositedChanged += OnCompositingChanged;
111
111
// Register Shortcuts
112
Services.Keybinder.RegisterKeyBinding (new KeyBinding (DoKeyEvents.EnterTextMode, Catalog.GetString ("Enter Text Mode"),
113
"period", OnTextModePressEvent));
114
Services.Keybinder.RegisterKeyBinding (new KeyBinding (DoKeyEvents.Copy, Catalog.GetString ("Copy to Clipboard"),
115
"<Control>c", OnCopyEvent));
116
Services.Keybinder.RegisterKeyBinding (new KeyBinding (DoKeyEvents.Paste, Catalog.GetString ("Paste Current Text"),
117
"<Control>v", OnPasteEvent));
118
Services.Keybinder.RegisterKeyBinding (new KeyBinding (DoKeyEvents.PreviousPane, Catalog.GetString ("Previous Pane"),
119
"ISO_Left_Tab", OnPreviousPanePressEvent));
120
Services.Keybinder.RegisterKeyBinding (new KeyBinding (DoKeyEvents.NextPane, Catalog.GetString ("Next Pane"),
121
"Tab", OnNextPanePressEvent));
122
Services.Keybinder.RegisterKeyBinding (new KeyBinding (DoKeyEvents.Up, Catalog.GetString ("Previous Item"),
123
"Up", OnUpKeyPressEvent));
124
Services.Keybinder.RegisterKeyBinding (new KeyBinding (DoKeyEvents.Down, Catalog.GetString ("Next Item"),
125
"Down", OnDownKeyPressEvent));
126
Services.Keybinder.RegisterKeyBinding (new KeyBinding (DoKeyEvents.First, Catalog.GetString ("First Item"),
127
"Home", OnHomeKeyPressEvent));
128
Services.Keybinder.RegisterKeyBinding (new KeyBinding (DoKeyEvents.Last, Catalog.GetString ("Last Item"),
129
"End", OnEndKeyPressEvent));
130
Services.Keybinder.RegisterKeyBinding (new KeyBinding (DoKeyEvents.PageLast, Catalog.GetString ("Previous 5 Results"),
131
"Page_Up", OnPageUpKeyPressEvent));
132
Services.Keybinder.RegisterKeyBinding (new KeyBinding (DoKeyEvents.PageNext, Catalog.GetString ("Next 5 Results"),
133
"Page_Down", OnPageDownKeyPressEvent));
134
Services.Keybinder.RegisterKeyBinding (new KeyBinding (DoKeyEvents.Left, Catalog.GetString ("Step Out of Item"),
135
"Left", OnLeftKeyPressEvent));
136
Services.Keybinder.RegisterKeyBinding (new KeyBinding (DoKeyEvents.Right, Catalog.GetString ("Browse Into Item"),
137
"Right", OnRightKeyPressEvent));
138
Services.Keybinder.RegisterKeyBinding (new KeyBinding (DoKeyEvents.MultiSelect, Catalog.GetString ("Select Multiple Items"),
139
"comma", OnSelectionKeyPressEvent));
112
Services.Keybinder.RegisterKeyBinding (new KeyBinding (Catalog.GetString ("Enter Text Mode"), "period",
113
OnTextModePressEvent));
114
Services.Keybinder.RegisterKeyBinding (new KeyBinding (Catalog.GetString ("Copy to Clipboard"), "<Control>c",
116
Services.Keybinder.RegisterKeyBinding (new KeyBinding (Catalog.GetString ("Paste Current Text"), "<Control>v",
118
Services.Keybinder.RegisterKeyBinding (new KeyBinding (Catalog.GetString ("Previous Pane"), "ISO_Left_Tab",
119
OnPreviousPanePressEvent));
120
Services.Keybinder.RegisterKeyBinding (new KeyBinding (Catalog.GetString ("Next Pane"), "Tab",
121
OnNextPanePressEvent));
122
Services.Keybinder.RegisterKeyBinding (new KeyBinding (Catalog.GetString ("Previous Item"), "Up",
124
Services.Keybinder.RegisterKeyBinding (new KeyBinding (Catalog.GetString ("Next Item"), "Down",
125
OnDownKeyPressEvent));
126
Services.Keybinder.RegisterKeyBinding (new KeyBinding (Catalog.GetString ("First Item"), "Home",
127
OnHomeKeyPressEvent));
128
Services.Keybinder.RegisterKeyBinding (new KeyBinding (Catalog.GetString ("Last Item"), "End",
129
OnEndKeyPressEvent));
130
Services.Keybinder.RegisterKeyBinding (new KeyBinding (Catalog.GetString ("Previous 5 Results"), "Page_Up",
131
OnPageUpKeyPressEvent));
132
Services.Keybinder.RegisterKeyBinding (new KeyBinding (Catalog.GetString ("Next 5 Results"), "Page_Down",
133
OnPageDownKeyPressEvent));
134
Services.Keybinder.RegisterKeyBinding (new KeyBinding (Catalog.GetString ("Step Out of Item"), "Left",
135
OnLeftKeyPressEvent));
136
Services.Keybinder.RegisterKeyBinding (new KeyBinding (Catalog.GetString ("Browse Into Item"), "Right",
137
OnRightKeyPressEvent));
138
Services.Keybinder.RegisterKeyBinding (new KeyBinding (Catalog.GetString ("Select Multiple Items"), "comma",
139
OnSelectionKeyPressEvent));
140
//summon in text mode
141
Services.Keybinder.RegisterKeyBinding (new KeyBinding (Catalog.GetString ("Summon in Text Mode"), "<Super>period",
142
delegate { this.Summon (); SearchController.TextMode = true; UpdatePane (CurrentPane); } , true));
142
145
void OnSummoned ()