File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -490,7 +490,7 @@ func (gv *GridView) RedoAvailFunc(act *gi.Button) {
490
490
491
491
// PasteAvailFunc is an ActionUpdateFunc that inactivates action if no paste avail
492
492
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 ()
494
494
act .SetInactiveState (empty )
495
495
}
496
496
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ import (
18
18
"github.com/goki/ki/ki"
19
19
"github.com/goki/ki/kit"
20
20
"github.com/goki/pi/filecat"
21
+ "goki.dev/gi/v2/keyfun"
21
22
)
22
23
23
24
// TreeView is a TreeView that knows how to operate on FileNode nodes
@@ -134,7 +135,7 @@ func (gv *GridView) CutSelected() {
134
135
135
136
// PasteClip pastes clipboard, using cur layer etc
136
137
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 })
138
139
if md == nil {
139
140
return
140
141
}
You can’t perform that action at this time.
0 commit comments