aboutsummaryrefslogtreecommitdiffstats
path: root/ext/tk/lib/tktext.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/tk/lib/tktext.rb')
-rw-r--r--ext/tk/lib/tktext.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/ext/tk/lib/tktext.rb b/ext/tk/lib/tktext.rb
index 109afad924..8ab57d8065 100644
--- a/ext/tk/lib/tktext.rb
+++ b/ext/tk/lib/tktext.rb
@@ -284,6 +284,21 @@ class TkText<TkTextWin
self
end
+ def text_copy
+ # Tk8.4 feature
+ tk_call('tk_textCopy', @path)
+ end
+
+ def text_cut
+ # Tk8.4 feature
+ tk_call('tk_textCut', @path)
+ end
+
+ def text_paste
+ # Tk8.4 feature
+ tk_call('tk_textPaste', @path)
+ end
+
def tag_add(tag, index1, index2=None)
tk_send 'tag', 'add', tag, index1, index2
self