1 |
/* wptHotkey.h - Hotkey registration |
/* wptHotkey.h - Hotkey registration |
2 |
* Copyright (C) 2001-2004 Timo Schulz |
* Copyright (C) 2001-2005 Timo Schulz |
3 |
* |
* |
4 |
* This file is part of WinPT. |
* This file is part of WinPT. |
5 |
* |
* |
17 |
* along with WinPT; if not, write to the Free Software Foundation, |
* along with WinPT; if not, write to the Free Software Foundation, |
18 |
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
19 |
*/ |
*/ |
|
|
|
20 |
#ifndef WPT_HOTKEY_H |
#ifndef WPT_HOTKEY_H |
21 |
#define WPT_HOTKEY_H |
#define WPT_HOTKEY_H |
22 |
|
|
35 |
|
|
36 |
/* Hotkey context. */ |
/* Hotkey context. */ |
37 |
struct hotkey_s { |
struct hotkey_s { |
38 |
int enabled; |
int enabled; /* 1 = enabled. */ |
39 |
int id; |
int id; /* valid ID (see above). */ |
40 |
int alt_ctrl; |
int alt_ctrl; /* hotkey used with ALT+ */ |
41 |
int alt_shift; |
int alt_shift; /* hotkey used with SHIFT+ */ |
42 |
int key; |
int key; /* actual key code. */ |
43 |
}; |
}; |
44 |
typedef struct hotkey_s * hotkey_t; |
typedef struct hotkey_s * hotkey_t; |
45 |
|
|
46 |
/* List of all available hotkeys. */ |
/* List of all predefined hotkeys. */ |
47 |
static hotkey_s wpt_hotkeys[] = { |
static hotkey_s wpt_hotkeys[] = { |
48 |
{1, WPT_CLIP_ENCRYPT_ID, 1, 0, 0x45}, /* alt+ctrl+e */ |
{1, WPT_CLIP_ENCRYPT_ID, 1, 0, 0x45}, /* alt+ctrl+e */ |
49 |
{1, WPT_CLIP_DECRYPT_VERIFY_ID, 1, 0, 0x44}, /* alt+ctrl+d */ |
{1, WPT_CLIP_DECRYPT_VERIFY_ID, 1, 0, 0x44}, /* alt+ctrl+d */ |