Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/tools/sqlsharp/gui/gtk-sharp/sqlsharpgtk.cs')
-rw-r--r--mcs/tools/sqlsharp/gui/gtk-sharp/sqlsharpgtk.cs32
1 files changed, 16 insertions, 16 deletions
diff --git a/mcs/tools/sqlsharp/gui/gtk-sharp/sqlsharpgtk.cs b/mcs/tools/sqlsharp/gui/gtk-sharp/sqlsharpgtk.cs
index bb5fd6505b9..adf7b0743ce 100644
--- a/mcs/tools/sqlsharp/gui/gtk-sharp/sqlsharpgtk.cs
+++ b/mcs/tools/sqlsharp/gui/gtk-sharp/sqlsharpgtk.cs
@@ -156,8 +156,8 @@ namespace Mono.Data.SqlSharp.Gui.GtkSharp
editor = new SqlEditorSharp ();
editor.UseSyntaxHiLighting = true;
editor.View.Show ();
- editor.View.KeyPressEvent +=
- new GtkSharp.KeyPressEventHandler(OnKeyPressEventKey);
+ editor.View.KeyPressEvent +=
+ new GtkSharp.KeyPressEventHandler(OnKeyPressEventKey);
lastUnknownFile ++;
string unknownFile = "Unknown" +
@@ -231,20 +231,20 @@ namespace Mono.Data.SqlSharp.Gui.GtkSharp
return sw;
}
- void OnKeyPressEventKey(object o, GtkSharp.KeyPressEventArgs args)
- {
- if (o is TextView) {
- TextView tv = (TextView) o;
- //Gdk.EventKey k = args.Event;
-
- // if the F5 key was pressed
- if (args.Event.keyval == 0xFFC2) {
- if (tv.Editable == true) {
- // execute SQL
- ExecuteSQL (ExecuteOutputType.Normal, "");
- }
- }
- }
+ void OnKeyPressEventKey(object o, GtkSharp.KeyPressEventArgs args)
+ {
+ if (o is TextView) {
+ TextView tv = (TextView) o;
+ //Gdk.EventKey k = args.Event;
+
+ // if the F5 key was pressed
+ if (args.Event.keyval == 0xFFC2) {
+ if (tv.Editable == true) {
+ // execute SQL
+ ExecuteSQL (ExecuteOutputType.Normal, "");
+ }
+ }
+ }
}
Toolbar CreateToolbar ()