Skip to content
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

suppport alt+f2, ctrl/cmd+Up/DownArrow to go to terminal accessible buffer, synchronize windows/mac keybinding for command nav in accessible buffer #191108

Merged
merged 9 commits into from
Aug 24, 2023

Conversation

meganrogge
Copy link
Contributor

@meganrogge meganrogge commented Aug 23, 2023

fixes #188927
fixes #189360

Re this one, I think it makes sense to unify across platforms for screen reader users. It doesn't present an inconsistency as currently, in the terminal, ctrl+up/down does not jump to commands.
fixes #189358

@meganrogge meganrogge requested a review from Tyriar August 23, 2023 17:37
@meganrogge meganrogge self-assigned this Aug 23, 2023
@meganrogge meganrogge added this to the August 2023 milestone Aug 23, 2023
@meganrogge meganrogge marked this pull request as draft August 23, 2023 18:49
@meganrogge meganrogge marked this pull request as ready for review August 23, 2023 19:12
@meganrogge meganrogge changed the title suppport alt+f2, ctrl/cmd+Up/DownArrow to go to terminal accessible buffer suppport alt+f2, ctrl/cmd+Up/DownArrow to go to terminal accessible buffer, synchronize windows/mac keybinding for command nav in accessible buffer Aug 23, 2023
Tyriar
Tyriar previously requested changes Aug 24, 2023
@@ -22,6 +22,10 @@ export const terminalStrings = {
value: localize('workbench.action.terminal.focus', "Focus Terminal"),
original: 'Focus Terminal'
},
focusAndHideAccessibleBuffer: {
value: localize('workbench.action.terminal.focusAndHideAccessibleBuffer', "Focus Terminal and Hide Accessible Buffer"),
original: 'Focus Terminal and Hide Accessible Buffer'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this be the default behavior of the focus terminal command? As opposed to FocusAccessibleBuffer which focuses the accessible buffer, not the textarea?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried that originally. that does not work because hide has to be called on the accessible view component and we cannot access that here. can refactor this when we move over to using the accessible view for this in the future

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you could handle that with ITerminalInstance.onDidFocus

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's what I tried initially. It was confusing because the event is named onDidRequestFocus

@meganrogge meganrogge requested a review from Tyriar August 24, 2023 15:14
@meganrogge meganrogge merged commit ee3cf9c into main Aug 24, 2023
6 checks passed
@meganrogge meganrogge deleted the merogge/alt-keybindings branch August 24, 2023 21:16
@github-actions github-actions bot locked and limited conversation to collaborators Oct 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.