2013-12-04 13:07:13 -08:00
|
|
|
#include "private.h"
|
|
|
|
|
|
|
|
#include <Elementary.h>
|
|
|
|
#include "config.h"
|
|
|
|
#include "termio.h"
|
|
|
|
#include "options.h"
|
|
|
|
#include "options_wallpaper.h"
|
|
|
|
|
|
|
|
void
|
|
|
|
options_keys(Evas_Object *opbox, Evas_Object *term EINA_UNUSED)
|
|
|
|
{
|
2013-12-04 13:50:21 -08:00
|
|
|
Evas_Object *o, *fr, *li, *lbl;
|
2013-12-04 13:07:13 -08:00
|
|
|
|
2013-12-04 13:50:21 -08:00
|
|
|
fr = o = elm_frame_add(opbox);
|
2013-12-04 13:07:13 -08:00
|
|
|
evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
|
|
|
evas_object_size_hint_align_set(o, EVAS_HINT_FILL, EVAS_HINT_FILL);
|
2013-12-04 13:50:21 -08:00
|
|
|
elm_object_text_set(o, "Key Bindings");
|
2013-12-04 13:07:13 -08:00
|
|
|
elm_box_pack_end(opbox, o);
|
2013-12-04 13:50:21 -08:00
|
|
|
evas_object_show(o);
|
|
|
|
|
|
|
|
li = elm_list_add(o);
|
|
|
|
elm_list_mode_set(li, ELM_LIST_LIMIT);
|
|
|
|
evas_object_size_hint_weight_set(li, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
|
|
|
evas_object_size_hint_align_set(li, EVAS_HINT_FILL, EVAS_HINT_FILL);
|
|
|
|
elm_object_content_set(fr, li);
|
|
|
|
|
|
|
|
#define KB(_action, _keys) do { \
|
|
|
|
lbl = elm_label_add(li); \
|
|
|
|
elm_object_text_set(lbl, _keys); \
|
|
|
|
elm_list_item_append(li, _action, NULL, lbl, NULL, NULL); \
|
|
|
|
} while (0)
|
|
|
|
|
2014-07-20 14:04:47 -07:00
|
|
|
KB(_("Scroll one page up"), "Shift + PgUp");
|
|
|
|
KB(_("Scroll one page down"), "Shift + PgDn");
|
|
|
|
KB(_("Paste Clipboard (ctrl+v/c) selection"), "Shift + Insert");
|
|
|
|
KB(_("Paste Clipboard (ctrl+v/c) selection"), "Ctrl + Shift + v");
|
|
|
|
KB(_("Paste Primary (highlight) selection"), "Shift + Ctrl + Insert");
|
|
|
|
KB(_("Paste Primary (highlight) selection"), "Alt + Return");
|
|
|
|
KB(_("Copy current selection to clipboard"), "Ctrl + Shift + c");
|
|
|
|
KB(_("Copy current selection to clipboard"), "Shift+Keypad-Divide");
|
|
|
|
KB(_("Font size up 1"), "Shift+Keypad-Plus");
|
|
|
|
KB(_("Font size down 1"), "Shift+Keypad-Minus");
|
|
|
|
KB(_("Reset font size to 10"), "Shift+Keypad-Multiply");
|
|
|
|
KB(_("Split horizontally (new below)"), "Ctrl + Shift + PgUp");
|
|
|
|
KB(_("Split vertically (new on right)"), "Ctrl + Shift + PgDn");
|
|
|
|
KB(_("Focus to previous terminal"), "Ctrl + PgUp");
|
|
|
|
KB(_("Focus to next terminal"), "Ctrl + PgDn");
|
|
|
|
KB(_("Create new \"tab\""), "Ctrl + Shift + t");
|
|
|
|
KB(_("Bring up \"tab\" switcher"), "Ctrl + Shift + Home");
|
|
|
|
KB(_("Switch to terminal tab 1"), "Ctrl + 1");
|
|
|
|
KB(_("Switch to terminal tab 2"), "Ctrl + 2");
|
|
|
|
KB(_("Switch to terminal tab 3"), "Ctrl + 3");
|
|
|
|
KB(_("Switch to terminal tab 4"), "Ctrl + 4");
|
|
|
|
KB(_("Switch to terminal tab 5"), "Ctrl + 5");
|
|
|
|
KB(_("Switch to terminal tab 6"), "Ctrl + 6");
|
|
|
|
KB(_("Switch to terminal tab 7"), "Ctrl + 7");
|
|
|
|
KB(_("Switch to terminal tab 8"), "Ctrl + 8");
|
|
|
|
KB(_("Switch to terminal tab 9"), "Ctrl + 9");
|
|
|
|
KB(_("Switch to terminal tab 10"), "Ctrl + 0");
|
|
|
|
KB(_("Enter command mode"), "Alt + Home");
|
|
|
|
KB(_("Toggle miniview of the history"), "Ctrl + Shift + h");
|
2013-12-04 13:50:21 -08:00
|
|
|
#undef KB
|
2013-12-04 13:07:13 -08:00
|
|
|
}
|