Skip to content

Commit b55cef0

Browse files
committed
ClipBoard => Clipboard
1 parent 00850cd commit b55cef0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

grid/gridview.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ func (gv *GridView) RedoAvailFunc(act *gi.Button) {
490490

491491
// PasteAvailFunc is an ActionUpdateFunc that inactivates action if no paste avail
492492
func (gv *GridView) PasteAvailFunc(act *gi.Button) {
493-
empty := oswin.TheApp.ClipBoard(gv.ParentWindow().OSWin).IsEmpty()
493+
empty := oswin.TheApp.Clipboard(gv.ParentWindow().OSWin).IsEmpty()
494494
act.SetInactiveState(empty)
495495
}
496496

grid/treeview.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import (
1818
"github.com/goki/ki/ki"
1919
"github.com/goki/ki/kit"
2020
"github.com/goki/pi/filecat"
21+
"goki.dev/gi/v2/keyfun"
2122
)
2223

2324
// TreeView is a TreeView that knows how to operate on FileNode nodes
@@ -134,7 +135,7 @@ func (gv *GridView) CutSelected() {
134135

135136
// PasteClip pastes clipboard, using cur layer etc
136137
func (gv *GridView) PasteClip() {
137-
md := oswin.TheApp.ClipBoard(gv.ParentWindow().OSWin).Read([]string{filecat.DataJson})
138+
md := oswin.TheApp.Clipboard(gv.ParentWindow().OSWin).Read([]string{filecat.DataJson})
138139
if md == nil {
139140
return
140141
}

0 commit comments

Comments
 (0)