-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Fixes to telemetry Keyboard and mouse nb telemetry #11220
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 to telemetry Keyboard and mouse nb telemetry #11220
Conversation
@@ -305,70 +304,40 @@ export enum Telemetry { | |||
} | |||
|
|||
export enum NativeKeyboardCommandTelemetry { | |||
AddToEnd = 'DATASCIENCE.NATIVE.KEYBOARD.ADD_TO_END', |
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.
Some of these cannot be done using keyboard, only possible via mouse clicks (hmm, highlights accessibility issues)
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.
Our accessibility is rough, but pretty soon a big chunk of that will be on the VS Code notebook editor.
Kudos, SonarCloud Quality Gate passed!
|
} | ||
break; | ||
case 'l': | ||
if (!this.isFocused() && this.isSelected()) { | ||
e.stopPropagation(); | ||
e.preventDefault(); | ||
this.props.toggleLineNumbers(cellId); | ||
this.props.sendCommand(NativeCommandType.ToggleLineNumbers, 'keyboard'); | ||
this.props.sendCommand(NativeKeyboardCommandTelemetry.ToggleLineNumbers); |
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 telemetry tells us whether its keyboard/mouse, hence we don't need the command argument either.
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.
For #10809