[Monodevelop-patches-list] r881 - trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Fri Feb 13 15:58:23 EST 2004
Author: benm
Date: 2004-02-13 15:58:23 -0500 (Fri, 13 Feb 2004)
New Revision: 881
Modified:
trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorBuffer.cs
Log:
always enable cut.copy/paste
Modified: trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorBuffer.cs
===================================================================
--- trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorBuffer.cs 2004-02-13 20:28:03 UTC (rev 880)
+++ trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorBuffer.cs 2004-02-13 20:58:23 UTC (rev 881)
@@ -108,21 +108,22 @@
}
bool IClipboardHandler.EnableCut {
- get { return HasSelection; }
+ get { return true; }
}
bool IClipboardHandler.EnableCopy {
- get { return HasSelection; }
+ get { return true; }
}
bool IClipboardHandler.EnablePaste {
get {
- return clipboard.WaitIsTextAvailable ();
+ return true;
+ //return clipboard.WaitIsTextAvailable ();
}
}
bool IClipboardHandler.EnableDelete {
- get { return HasSelection; }
+ get { return true; }
}
bool IClipboardHandler.EnableSelectAll {
@@ -131,22 +132,26 @@
void IClipboardHandler.Cut (object sender, EventArgs e)
{
- CutClipboard (clipboard, true);
+ if (HasSelection)
+ CutClipboard (clipboard, true);
}
void IClipboardHandler.Copy (object sender, EventArgs e)
{
- CopyClipboard (clipboard);
+ if (HasSelection)
+ CopyClipboard (clipboard);
}
void IClipboardHandler.Paste (object sender, EventArgs e)
{
- PasteClipboard (clipboard);
+ if (clipboard.WaitIsTextAvailable ())
+ PasteClipboard (clipboard);
}
void IClipboardHandler.Delete (object sender, EventArgs e)
{
- DeleteSelection (true, true);
+ if (HasSelection)
+ DeleteSelection (true, true);
}
void IClipboardHandler.SelectAll (object sender, EventArgs e)
More information about the Monodevelop-patches-list
mailing list