autonomys / space-acres

Space Acres is an opinionated GUI application for farming on Autonomys Network
65 stars 32 forks source link

Not able to paste the address into Config page #145

Closed abhi3700 closed 2 months ago

abhi3700 commented 8 months ago

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.

nazar-pc commented 8 months ago

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?

abhi3700 commented 8 months ago

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

nazar-pc commented 8 months ago

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

abhi3700 commented 8 months ago

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.

nazar-pc commented 8 months ago

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 commented 8 months ago

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

jim-counter commented 8 months ago

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

nazar-pc commented 8 months ago

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

abhi3700 commented 8 months ago

@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 commented 8 months ago

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.

nazar-pc commented 8 months ago

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.

abhi3700 commented 8 months ago

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.

nazar-pc commented 4 months ago

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 commented 2 months ago

Should be fixed in 0.1.36 with GTK upgrade to 4.16.1