space-acres icon indicating copy to clipboard operation
space-acres copied to clipboard

Not able to paste the address into Config page

Open abhi3700 opened this issue 1 year ago • 13 comments

Description

I am not able to paste the address via cmd+v/ctrl+v into this screen input textbox. image

I generated the key from my terminal using sp_core lib in a rust code.

abhi3700 avatar Mar 05 '24 12:03 abhi3700

Never had this issue, have you tried pasting it into a text editor to make sure you've actually copied address in the first place?

nazar-pc avatar Mar 05 '24 14:03 nazar-pc

Sharing a clip here to show that it's not getting pasted using cmd+v/ctrl+v on macOS.

https://github.com/subspace/space-acres/assets/16472948/5047a934-22e7-4acd-9955-657e64300816

abhi3700 avatar Mar 06 '24 07:03 abhi3700

Are you able to paste things into other fields like farm size? This looks like a GTK4 bug to me.

nazar-pc avatar Mar 06 '24 07:03 nazar-pc

Are you able to paste things into other fields like farm size? Neither am I able to paste into other fields. Tried with farm size.

Also, cmd+delete/ctrl+delete/opt+delete is not working for deleting everything written into textbox.

This looks like a GTK4 bug to me.

Basically, the shortcut keys are not working.

abhi3700 avatar Mar 06 '24 09:03 abhi3700

Report this upstream, not much I can do here: https://gitlab.gnome.org/GNOME/gtk

Since we don't have official macOS packages, this is a very low priority to fix.

nazar-pc avatar Mar 06 '24 09:03 nazar-pc

@abhi3700 do you have a link to upstream issue to share?

nazar-pc avatar Mar 20 '24 10:03 nazar-pc

I have seen @EmilFattakhov report similar issues I have not experienced myself on Windows. I am suspicious this is a MacOS thing.

jim-counter avatar Mar 20 '24 11:03 jim-counter

It is macOS thing as labels indicate, someone just needs to report it upstream and maybe even contribute to fixing

nazar-pc avatar Mar 20 '24 11:03 nazar-pc

@abhi3700 do you have a link to upstream issue to share?

I created an issue here: https://github.com/gtk-rs/gtk4-rs/issues/1636. Didn't quite understand what upstream meant as in where to post the issue in this comment.

abhi3700 avatar Mar 20 '24 14:03 abhi3700

I have seen @EmilFattakhov report similar issues I have not experienced myself on Windows. I am suspicious this is a MacOS thing.

Yes it is.

abhi3700 avatar Mar 20 '24 14:03 abhi3700

Didn't quite understand what upstream meant

I literally gave you a link to upstream repository where it should have been reported :confused:

gtk4-rs is just Rust bindings, it doesn't handle clipboard or anything like that.

nazar-pc avatar Mar 20 '24 14:03 nazar-pc

At that time, there was some gitlab server issue, as far as I can remember. So, I went ahead with creating issue on gtk4-rs repo. Created issue on upstream: https://gitlab.gnome.org/GNOME/gtk/-/issues/6559.

Apologies for the delay caused.

abhi3700 avatar Mar 20 '24 14:03 abhi3700

https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/7260 was merged, so should be fixed in 4.16, but hopefully also backported into 4.14 stable series.

nazar-pc avatar Jul 03 '24 15:07 nazar-pc

Should be fixed in 0.1.36 with GTK upgrade to 4.16.1

nazar-pc avatar Sep 17 '24 15:09 nazar-pc