-
Notifications
You must be signed in to change notification settings - Fork 694
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
Fixes #3764. Makes common UI interactions consistent across built-in Views #3766
Conversation
All unit tests pass.
@tznind I would really appreciate your eyes on this one. This changes a bunch of default behavior and may impact TGD. Plus you originally implemented Command and KeyBindings... |
I think pressing F6 it's a useful way to jump from a group box to another, but I also thing that if no more subviews exist in a group box pressing tab or shift tab can jump to the next or previous group box, instead of a static position. |
After setting WindowsTerminal_8KbOkrHsjD.mp4 |
This should be fixed asap. In my opinion the |
I hope you don't think I wasn't be vocal 😄 |
I disagree. Not going to debate it here though as I want to focus on changes I made in this PR and that was done elsewhere. Please discuss here: #3775 |
You're right. However, remember that I'm in the middle of completely replacing |
I don't think I understand what you are saying. However, here's my perspective.
MenuBar menuBar = new MenuBar () { ... }; // Y = 0 is default
StatusBar statusBar = new StatusBar () { ...}; // Y = Pos.AnchorEnd() is default
ListView listView = new ListView ()
{
Y = Pos.Bottom (menuBar),
Width = Dim.Fill(),
Height = Dim.Fill (Dim.Func (() => statusBar.Frame.Height)),
}
Add (menuBar, listView, statusBar); This is basically how UI Catalog's main window works today. I just tweaked this PR to prove it. I had to trick The Height = Dim.FIll (to: statusBar), Or, we could be even smarter and provide a Height = Dim.Fill (toTopAnchorEnd: true), As i said, I'm not quite following what you wrote above, so I may be missing some use-case in my thinking. But it seems to me this will work. |
Great stuff @BDisp!! Keep it coming. |
@BDisp Please file an issue for things that are broken in v2_develop or main. It's really frustrating to chase something like this down only to discover that this PR didn't have anything to do with breaking it. |
Sorry I didn't saw the code. |
Fixes
Select
,Accept
,HotKey
, etc...) #3764Shortcut
can contain sub-views and appropriately support common user-interactions in those subviews.Proposed Changes/Todos
This is signficant PR that changes the behavior of
View
as well asButton
,CheckBox
,RadioGroup
,TextView
etc.. forCommand
s -Select
,Accept
, andHotKey
now have default implementations inView
View.Selecting/OnSelecting
).e.Canceled
properly in event handlers.More:
See navigation.md in this PR for more...
Pull Request checklist:
CTRL-K-D
to automatically reformat your files before committing.dotnet test
before commit///
style comments)