|
77 | 77 | <span id="notification_area"></span> |
78 | 78 | <div class="navbar-collapse collapse"> |
79 | 79 | <ul class="nav navbar-nav"> |
80 | | - <li class="dropdown"><a href="#" id="filelink" aria-haspopup="true" aria-controls="file_menu class="dropdown-toggle" data-toggle="dropdown">{% trans %}File{% endtrans %}</a> |
| 80 | + <li class="dropdown"><a href="#" class="dropdown-toggle" id="filelink" data-toggle="dropdown" aria-haspopup="true" aria-controls="file_menu">{% trans %}File{% endtrans %}</a> |
81 | 81 | <ul id="file_menu" class="dropdown-menu" role="menu" aria-labelledby="filelink"> |
82 | | - <li id="new_notebook" class="dropdown-submenu" role="none"> |
83 | | - <a href="#" role="menuitem">{% trans %}New Notebook{% endtrans %}<span class="sr-only">{% trans %}Toggle Dropdown{% endtrans %}</span></a> |
84 | | - <ul class="dropdown-menu" id="menu-new-notebook-submenu"></ul> |
| 82 | + <li id="new_notebook" class="menu_focus_highlight dropdown dropdown-submenu" role="none"> |
| 83 | + <a href="#" role="menuitem" aria-haspopup="true" aria-expanded="false" class="dropdown-toggle" data-toggle="dropdown">{% trans %}New Notebook{% endtrans %}<span class="sr-only">Dropdown</span></a> |
| 84 | + <ul class="dropdown-menu" id="menu-new-notebook-submenu" role="menu"> |
| 85 | + </ul> |
85 | 86 | </li> |
86 | 87 | <li id="open_notebook" role="none" |
87 | 88 | title="{% trans %}Opens a new window with the Dashboard view{% endtrans %}"> |
|
98 | 99 | <li id="save_checkpoint" role="none"><a href="#" role="menuitem">{% trans %}Save and Checkpoint{% endtrans %}</a></li> |
99 | 100 | <!-- <hr/> --> |
100 | 101 | <li class="divider" role="none"></li> |
101 | | - <li id="restore_checkpoint" class="dropdown-submenu" role="none"><a href="#" role="menuitem">{% trans %}Revert to Checkpoint{% endtrans %}<span class="sr-only">{% trans %}Toggle Dropdown{% endtrans %}</span></a> |
| 102 | + <li id="restore_checkpoint" class="menu_focus_highlight dropdown-submenu" role="none"><a href="#" role="menuitem" aria-haspopup="true" aria-expanded="false" class="dropdown-toggle" data-toggle="dropdown">{% trans %}Revert to Checkpoint{% endtrans %}<span class="sr-only">Dropdown</span></a> |
102 | 103 | <ul class="dropdown-menu"> |
103 | 104 | <li><a href="#"></a></li> |
104 | 105 | <li><a href="#"></a></li> |
|
109 | 110 | </li> |
110 | 111 | <li class="divider" role="none"></li> |
111 | 112 | <li id="print_preview" role="none"><a href="#" role="menuitem">{% trans %}Print Preview{% endtrans %}</a></li> |
112 | | - <li class="dropdown-submenu" role="none"><a href="#" role="menuitem">{% trans %}Download as{% endtrans %}<span class="sr-only">{% trans %}Toggle Dropdown{% endtrans %}</span></a> |
| 113 | + <li class="dropdown-submenu menu_focus_highlight" role="none"><a href="#" role="menuitem" aria-haspopup="true" aria-expanded="false" class="dropdown-toggle" data-toggle="dropdown">{% trans %}Download as{% endtrans %}<span class="sr-only">Dropdown</span></a> |
113 | 114 | <ul id="download_menu" class="dropdown-menu"> |
114 | 115 | {% for exporter in get_frontend_exporters() %} |
115 | 116 | <li id="download_{{ exporter.name }}"> |
|
174 | 175 | title="{% trans %}Show/Hide line numbers in cells{% endtrans %}"> |
175 | 176 | <a href="#" role="menuitem">{% trans %}Toggle Line Numbers{% endtrans %}</a> |
176 | 177 | </li> |
177 | | - <li id="menu-cell-toolbar" class="dropdown-submenu" role="none"> |
178 | | - <a href="#" role="menuitem">{% trans %}Cell Toolbar{% endtrans %}</a> |
| 178 | + <li id="menu-cell-toolbar" class="menu_focus_highlight dropdown-submenu" role="none"> |
| 179 | + <a href="#" role="menuitem" aria-haspopup="true" aria-expanded="false" class="dropdown-toggle" data-toggle="dropdown">{% trans %}Cell Toolbar{% endtrans %}</a> |
179 | 180 | <ul class="dropdown-menu" id="menu-cell-toolbar-submenu"></ul> |
180 | 181 | </li> |
181 | 182 | </ul> |
|
190 | 191 | <a href="#" role="menuitem">{% trans %}Insert Cell Below{% endtrans %}</a></li> |
191 | 192 | </ul> |
192 | 193 | </li> |
193 | | - <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">{% trans %}Cell{% endtrans %}</a> |
194 | | - <ul id="cell_menu" class="dropdown-menu"> |
195 | | - <li id="run_cell" title="{% trans %}Run this cell, and move cursor to the next one{% endtrans %}"> |
196 | | - <a href="#">{% trans %}Run Cells{% endtrans %}</a></li> |
197 | | - <li id="run_cell_select_below" title="{% trans %}Run this cell, select below{% endtrans %}"> |
198 | | - <a href="#">{% trans %}Run Cells and Select Below{% endtrans %}</a></li> |
199 | | - <li id="run_cell_insert_below" title="{% trans %}Run this cell, insert below{% endtrans %}"> |
200 | | - <a href="#">{% trans %}Run Cells and Insert Below{% endtrans %}</a></li> |
201 | | - <li id="run_all_cells" title="{% trans %}Run all cells in the notebook{% endtrans %}"> |
202 | | - <a href="#">{% trans %}Run All{% endtrans %}</a></li> |
203 | | - <li id="run_all_cells_above" title="{% trans %}Run all cells above (but not including) this cell{% endtrans %}"> |
204 | | - <a href="#">{% trans %}Run All Above{% endtrans %}</a></li> |
205 | | - <li id="run_all_cells_below" title="{% trans %}Run this cell and all cells below it{% endtrans %}"> |
206 | | - <a href="#">{% trans %}Run All Below{% endtrans %}</a></li> |
207 | | - <li class="divider"></li> |
208 | | - <li id="change_cell_type" class="dropdown-submenu" |
| 194 | + <li class="dropdown"><a href="#" class="dropdown-toggle" id="celllink" data-toggle="dropdown" aria-haspopup="true" aria-controls="cell_menu">{% trans %}Cell{% endtrans %}</a> |
| 195 | + <ul id="cell_menu" class="dropdown-menu" role="menu" aria-labelledby="celllink"> |
| 196 | + <li id="run_cell" role="none" title="{% trans %}Run this cell, and move cursor to the next one{% endtrans %}"> |
| 197 | + <a role="menuitem" href="#">{% trans %}Run Cells{% endtrans %}</a></li> |
| 198 | + <li id="run_cell_select_below" role="none" title="{% trans %}Run this cell, select below{% endtrans %}"> |
| 199 | + <a href="#" role="menuitem">{% trans %}Run Cells and Select Below{% endtrans %}</a></li> |
| 200 | + <li id="run_cell_insert_below" role="none" title="{% trans %}Run this cell, insert below{% endtrans %}"> |
| 201 | + <a href="#" role="menuitem">{% trans %}Run Cells and Insert Below{% endtrans %}</a></li> |
| 202 | + <li id="run_all_cells" role="none" title="{% trans %}Run all cells in the notebook{% endtrans %}"> |
| 203 | + <a href="#" role="menuitem">{% trans %}Run All{% endtrans %}</a></li> |
| 204 | + <li id="run_all_cells_above" role="none" title="{% trans %}Run all cells above (but not including) this cell{% endtrans %}"> |
| 205 | + <a href="#" role="menuitem">{% trans %}Run All Above{% endtrans %}</a></li> |
| 206 | + <li id="run_all_cells_below" role="none" title="{% trans %}Run this cell and all cells below it{% endtrans %}"> |
| 207 | + <a href="#" role="menuitem">{% trans %}Run All Below{% endtrans %}</a></li> |
| 208 | + <li class="divider" role="none"></li> |
| 209 | + <li id="change_cell_type" class="menu_focus_highlight dropdown-submenu" role="none" |
209 | 210 | title="{% trans %}All cells in the notebook have a cell type. By default, new cells are created as 'Code' cells{% endtrans %}"> |
210 | | - <a href="#">{% trans %}Cell Type{% endtrans %}</a> |
211 | | - <ul class="dropdown-menu"> |
212 | | - <li id="to_code" |
| 211 | + <a href="#" role="menuitem" aria-haspopup="true" aria-expanded="false" class="dropdown-toggle" data-toggle="dropdown">{% trans %}Cell Type{% endtrans %}</a> |
| 212 | + <ul class="dropdown-menu" role="menu"> |
| 213 | + <li id="to_code" role="none" |
213 | 214 | title="{% trans %}Contents will be sent to the kernel for execution, and output will display in the footer of cell{% endtrans %}"> |
214 | 215 | <a href="#">Code</a></li> |
215 | 216 | <li id="to_markdown" |
|
220 | 221 | <a href="#">{% trans %}Raw NBConvert{% endtrans %}</a></li> |
221 | 222 | </ul> |
222 | 223 | </li> |
223 | | - <li class="divider"></li> |
224 | | - <li id="current_outputs" class="dropdown-submenu"><a href="#">{% trans %}Current Outputs{% endtrans %}</a> |
225 | | - <ul class="dropdown-menu"> |
226 | | - <li id="toggle_current_output" |
| 224 | + <li class="divider" role="none"></li> |
| 225 | + <li id="current_outputs" class="menu_focus_highlight dropdown-submenu" role="none"><a href="#" role="menuitem" aria-haspopup="true" aria-expanded="false" class="dropdown-toggle" data-toggle="dropdown">{% trans %}Current Outputs{% endtrans %}</a> |
| 226 | + <ul class="dropdown-menu" role="menu"> |
| 227 | + <li id="toggle_current_output" role="none" |
227 | 228 | title="{% trans %}Hide/Show the output of the current cell{% endtrans %}"> |
228 | 229 | <a href="#">{% trans %}Toggle{% endtrans %}</a> |
229 | 230 | </li> |
|
237 | 238 | </li> |
238 | 239 | </ul> |
239 | 240 | </li> |
240 | | - <li id="all_outputs" class="dropdown-submenu"><a href="#">{% trans %}All Output{% endtrans %}</a> |
241 | | - <ul class="dropdown-menu"> |
242 | | - <li id="toggle_all_output" |
| 241 | + <li id="all_outputs" class="menu_focus_highlight dropdown-submenu" role="none"><a href="#" role="menuitem" aria-haspopup="true" aria-expanded="false" class="dropdown-toggle" data-toggle="dropdown">{% trans %}All Output{% endtrans %}</a> |
| 242 | + <ul class="dropdown-menu" role="menu"> |
| 243 | + <li id="toggle_all_output" role="none" |
243 | 244 | title="{% trans %}Hide/Show the output of all cells{% endtrans %}"> |
244 | 245 | <a href="#">{% trans %}Toggle{% endtrans %}</a> |
245 | 246 | </li> |
|
281 | 282 | title="Shutdown the Kernel"> |
282 | 283 | <a href="#">{% trans %}Shutdown{% endtrans %}</a> |
283 | 284 | </li> |
284 | | - <li class="divider"></li> |
285 | | - <li id="menu-change-kernel" class="dropdown-submenu"> |
286 | | - <a href="#">{% trans %}Change kernel{% endtrans %}</a> |
| 285 | + <li class="divider" role="none"></li> |
| 286 | + <li id="menu-change-kernel" class="menu_focus_highlight dropdown-submenu" role="menuitem"> |
| 287 | + <a href="#" role="menuitem" aria-haspopup="true" aria-expanded="false" class="dropdown-toggle" data-toggle="dropdown">{% trans %}Change kernel{% endtrans %}</a> |
287 | 288 | <ul class="dropdown-menu" id="menu-change-kernel-submenu"></ul> |
288 | 289 | </li> |
289 | 290 | </ul> |
|
0 commit comments