8000 DOC: Make event handling table scrollable by QuLogic · Pull Request #24752 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

DOC: Make event handling table scrollable #24752

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

Merged
merged 1 commit into from
Dec 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions doc/_static/mpl.css
Original file line number Diff line number Diff line change
Expand Up @@ -109,3 +109,15 @@ div.graphviz {
img.graphviz.inheritance {
max-width: none;
}

/* Make tables in notes horizontally scrollable if too large. */
div.wide-table {
overflow-x: auto;
}

div.wide-table table th.stub {
background-color: var(--pst-color-background);
background-clip: padding-box;
left: 0;
position: sticky;
}
137 changes: 118 additions & 19 deletions doc/users/explain/event_handling.rst
Original file line number Diff line number Diff line change
Expand Up @@ -85,25 +85,124 @@ Event name Class Description
what you may expect to receive as key(s) (using a QWERTY keyboard layout)
from the different user interface toolkits, where a comma separates different keys:

================ ============================= ============================== ============================== ============================== ============================== ===================================
Key(s) Pressed WxPython Qt WebAgg Gtk Tkinter macosx
================ ============================= ============================== ============================== ============================== ============================== ===================================
Shift+2 shift, shift+2 shift, @ shift, @ shift, @ shift, @ shift, @
Shift+F1 shift, shift+f1 shift, shift+f1 shift, shift+f1 shift, shift+f1 shift, shift+f1 shift, shift+f1
Shift shift shift shift shift shift shift
Control control control control control control control
Alt alt alt alt alt alt alt
AltGr Nothing Nothing alt iso_level3_shift iso_level3_shift
CapsLock caps_lock caps_lock caps_lock caps_lock caps_lock caps_lock
CapsLock+a caps_lock, a caps_lock, a caps_lock, A caps_lock, A caps_lock, A caps_lock, a
a a a a a a a
Shift+a shift, A shift, A shift, A shift, A shift, A shift, A
CapsLock+Shift+a caps_lock, shift, A caps_lock, shift, A caps_lock, shift, a caps_lock, shift, a caps_lock, shift, a caps_lock, shift, A
Ctrl+Shift+Alt control, ctrl+shift, ctrl+alt control, ctrl+shift, ctrl+meta control, ctrl+shift, ctrl+meta control, ctrl+shift, ctrl+meta control, ctrl+shift, ctrl+meta control, ctrl+shift, ctrl+alt+shift
Ctrl+Shift+a control, ctrl+shift, ctrl+A control, ctrl+shift, ctrl+A control, ctrl+shift, ctrl+A control, ctrl+shift, ctrl+A control, ctrl+shift, ctrl+a control, ctrl+shift, ctrl+A
F1 f1 f1 f1 f1 f1 f1
Ctrl+F1 control, ctrl+f1 control, ctrl+f1 control, ctrl+f1 control, ctrl+f1 control, ctrl+f1 control, Nothing
================ ============================= ============================== ============================== ============================== ============================== ===================================
.. container:: wide-table

.. list-table::
:header-rows: 1
:stub-columns: 1

* - Key(s) Pressed
- Tkinter
- Qt
- macosx
- WebAgg
- GTK
- WxPython
* - :kbd:`Shift+2`
- shift, @
- shift, @
- shift, @
- shift, @
- shift, @
- shift, shift+2
* - :kbd:`Shift+F1`
- shift, shift+f1
- shift, shift+f1
- shift, shift+f1
- shift, shift+f1
- shift, shift+f1
- shift, shift+f1
* - :kbd:`Shift`
- shift
- shift
- shift
- shift
- shift
- shift
* - :kbd:`Control`
- control
- control
- control
- control
- control
- control
* - :kbd:`Alt`
- alt
- alt
- alt
- alt
- alt
- alt
* - :kbd:`AltGr`
- iso_level3_shift
- *nothing*
-
- alt
- iso_level3_shift
- *nothing*
* - :kbd:`CapsLock`
- caps_lock
- caps_lock
- caps_lock
- caps_lock
- caps_lock
- caps_lock
* - :kbd:`CapsLock+a`
- caps_lock, A
- caps_lock, a
- caps_lock, a
- caps_lock, A
- caps_lock, A
- caps_lock, a
* - :kbd:`a`
- a
- a
- a
- a
- a
- a
* - :kbd:`Shift+a`
- shift, A
- shift, A
- shift, A
- shift, A
- shift, A
- shift, A
* - :kbd:`CapsLock+Shift+a`
- caps_lock, shift, a
- caps_lock, shift, A
- caps_lock, shift, A
- caps_lock, shift, a
- caps_lock, shift, a
- caps_lock, shift, A
* - :kbd:`Ctrl+Shift+Alt`
- control, ctrl+shift, ctrl+meta
- control, ctrl+shift, ctrl+meta
- control, ctrl+shift, ctrl+alt+shift
- control, ctrl+shift, ctrl+meta
- control, ctrl+shift, ctrl+meta
- control, ctrl+shift, ctrl+alt
* - :kbd:`Ctrl+Shift+a`
- control, ctrl+shift, ctrl+a
- control, ctrl+shift, ctrl+A
- control, ctrl+shift, ctrl+A
- control, ctrl+shift, ctrl+A
- control, ctrl+shift, ctrl+A
- control, ctrl+shift, ctrl+A
* - :kbd:`F1`
- f1
- f1
- f1
- f1
- f1
- f1
* - :kbd:`Ctrl+F1`
- control, ctrl+f1
- control, ctrl+f1
- control, *nothing*
- control, ctrl+f1
- control, ctrl+f1
- control, ctrl+f1

Matplotlib attaches some keypress callbacks by default for interactivity; they
are documented in the :ref:`key-event-handling` section.
Expand Down
0