Finalize keyboard shortcut style, add a few more commands

This commit is contained in:
Bryan Housel
2017-05-31 23:20:48 -04:00
parent 0149c12509
commit 8a3970613a
5 changed files with 162 additions and 88 deletions
+3 -3
View File
@@ -7,12 +7,12 @@ import { dataShortcuts } from '../../data';
export function uiShortcuts() {
var key = '⇧/';
var activeTab = 0;
var modalSelection;
var savedSelection;
var keybinding = d3keybinding('shortcuts')
.on(key, function () {
.on(['?', '⇧/'], function () {
if (modalSelection) {
modalSelection.close();
modalSelection = null;
@@ -142,7 +142,7 @@ export function uiShortcuts() {
shortcutRows
.append('td')
.attr('class', 'shortcut-desc')
.text(function (d) { return t(d.text); });
.text(function (d) { return d.text ? t(d.text) : '\u00a0'; });
shortcuts = shortcuts