-
Notifications
You must be signed in to change notification settings - Fork 1.1k
[Keyboard][Accessibility]: Fixing activation DataGridView cell tooltips with using a keyboard #1681
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
Conversation
Codecov Report
@@ Coverage Diff @@
## release/3.1 #1681 +/- ##
====================================================
+ Coverage 26.14871% 26.1542% +0.00549%
====================================================
Files 804 804
Lines 267845 268022 +177
Branches 37979 38008 +29
====================================================
+ Hits 70038 70099 +61
- Misses 192797 192903 +106
- Partials 5010 5020 +10
|
a8c0eec to
38aada1
Compare
src/System.Windows.Forms/src/System/Windows/Forms/DataGridView.Methods.cs
Outdated
Show resolved
Hide resolved
src/System.Windows.Forms/src/System/Windows/Forms/DataGridViewCell.cs
Outdated
Show resolved
Hide resolved
src/System.Windows.Forms/src/System/Windows/Forms/DataGridViewCell.cs
Outdated
Show resolved
Hide resolved
src/System.Windows.Forms/src/System/Windows/Forms/DataGridViewCell.cs
Outdated
Show resolved
Hide resolved
src/System.Windows.Forms/src/System/Windows/Forms/DataGridViewCell.cs
Outdated
Show resolved
Hide resolved
src/System.Windows.Forms/src/System/Windows/Forms/DataGridViewCell.cs
Outdated
Show resolved
Hide resolved
src/System.Windows.Forms/src/System/Windows/Forms/DataGridViewCell.cs
Outdated
Show resolved
Hide resolved
vladimir-krestov
left a comment
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.
Currently, there are 3 minor bugs:
- Sometimes the keyboard tooltip disappears if a mouse was located in its place.
- Sometimes after calling the mouse tooltip and selecting a cell using the keyboard, the keyboard tooltip does not appear.
- Sometimes a keyboard tooltip flickers near the mouse pointer when a cell selecting if set a short initialization time for the tooltip. This will be fixed as a separate issue because this bug is present in the ToolStrip of the master branch.
0238069 to
4a809c0
Compare
src/System.Windows.Forms/src/System/Windows/Forms/DataGridView.cs
Outdated
Show resolved
Hide resolved
src/System.Windows.Forms/src/System/Windows/Forms/DataGridView.cs
Outdated
Show resolved
Hide resolved
|
@RussKie, could you please confirm the following changes:
|
👍 |
|
Merge conflicts and commits list will be fixed after test issues fixing. |
a79286f to
b5b0a9f
Compare
5b66df7 to
a85b3b4
Compare
|
Testers approved this fix. |
src/System.Windows.Forms/src/System/Windows/Forms/DataGridViewCell.cs
Outdated
Show resolved
Hide resolved
src/System.Windows.Forms/src/System/Windows/Forms/DataGridView.cs
Outdated
Show resolved
Hide resolved
c57e84f to
9867270
Compare
Fixed mouse tooltip conflicts Implemented got-lost focus event handling. Added hooking when add column or row Implemented unhooking Added Image and Button resources Added hotkeys Code refactoring Removed ShowCellErrorsKeyboardTooTip property. Changed an access to keyboard tooltips Fixed CancelToolTipPopup Fixed resources Some code refactoring Deactivated mouse tooltip when DataGridView get focus Fixed tooltip activation when sorting Fixed review points Removed extra spaces Fixed CI build error Fixed review points Fixed a tooltip activation when adding a row. Fxed GetNeighboringToolsRectangles method Added cell neighbors unit test Code refactoring Fixed test issues Fixed OnLostFocus method Code refactoring Fixed getting cell ToolTip text. Made code refactoring. Code refactoring Fixed hooking Fixed test issues 2 Removed extra spaces Code refactoring
9867270 to
0fc4044
Compare
|
Business case approved. Please merge when @RussKie approves the code. |
1 similar comment
|
Business case approved. Please merge when @RussKie approves the code. |


Fixes #1680
Original bug:
Proposed changes
IKeyboardToolTipinterface forDataGridViewCellclass to use theKeyboardToolTipStateMachineProcessControlShiftF10Keysmethod to have the ability to activate/deactivate a cell tooltip using hotkeys (Control+Shift+F10 like as WPF)IsActivatedByKeyboardproperty which stores keyboard tooltip stateKeyboardToolTipproperty which stores keyboard tooltip info and settingsAdd public ShowCellKeyboardToolTips property to enable users to turn on/off keyboard tooltips displayUse
ShowCellToolTipsto enable users to turn on/off mouse and keyboard tooltips displayAdd default tooltip text to resources for all cells (needs review translation)
Customer Impact
Regression?
Risk
Adding publicShowCellKeyboardToolTipsproperty is risky. In the future, it will be problematic to change the implementation of keyboard tooltip activation without affecting users who already use this property.Instead, we can use
ShowCellToolTipsproperty, but it turns on/off both keyboard and mouse tooltips activationNone. It was decided to use
ShowCellToolTipsproperty only.Screenshots
Before
After
Test methodology
Test environment(s)
Microsoft Reviewers: Open in CodeFlow