cutter/src/widgets/WidgetShortcuts.h
icebp 4b454e086e create keyboard shortcuts for widgets (solve #733) (#819)
* Add shift-F12 shortcut for strings widget.

* change strings shortcut to use global map

* add Shift-I shortcut for Imports

* add Shift-E shortcut for Exports

* add Shift-G shortcut for Graph view

* add widgets shortcuts map file

* update widget checkboxes when using shortcuts
2018-10-16 09:25:09 +03:00

12 lines
339 B
C

#ifndef WIDGETSHORTCUTS_H
#define WIDGETSHORTCUTS_H
static const QHash<QString, QKeySequence> widgetShortcuts = {
{ "StringsWidget", Qt::SHIFT + Qt::Key_F12 },
{ "GraphWidget", Qt::SHIFT + Qt::Key_G },
{ "ImportsWidget", Qt::SHIFT + Qt::Key_I },
{ "ExportsWidget", Qt::SHIFT + Qt::Key_E }
};
#endif