-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding selection option to Label #5536
base: develop
Are you sure you want to change the base?
Conversation
When set we add the hoverable panel to handle selection
And use that to enable selection on Label
bebc4e6
to
f24aedc
Compare
f24aedc
to
40f9284
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. It is great to finally see this much requested feature. Well done. I just added some minor comments inline.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm. I was testing this some more now before intending to approve and it seems like clicking outside of the label does not remove the selection?
Thanks, all fixed plus I found some issues with mobile details as well, working well now I think. |
Gah, missed the change in one file. Could have force pushed but forgot. Ah well, should be green now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests seem to be failing but otherwise approved 👍
widget/entry.go
Outdated
@@ -288,6 +273,8 @@ func (e *Entry) FocusGained() { | |||
e.setFieldsAndRefresh(func() { | |||
e.dirty = true | |||
e.focused = true | |||
|
|||
log.Println("FOCUS") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Found a left-over.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How embarrassing! Fixed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The import was accidentally left in leading to a compile error unfortunately
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apologies, I should stop doing code commits on the bus!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Relatable. No problem
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Different kind of bus factor, and we're all in for the ride 😉
Selectable label incoming.
Got some tests to write/fix and a little refactoring to do - but I am pretty sure it's working well and has the right public API.
Checklist: