1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00
irssi/src/fe-common/core/keyboard.h
Timo Sirainen 596ef586b2 Added keyboard_entry_redirect() function to keyboard.[ch] which sends
the signal "gui entry redirect" signal. Added possibility to keep the
entry hidden.

/OPER [<nick> [<password>]] - syntax changed. If password isn't given,
it's asked.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1063 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-04 18:01:51 +00:00

42 lines
875 B
C

#ifndef __KEYBOARD_H
#define __KEYBOARD_H
#include "signals.h"
typedef struct {
char *id;
char *description;
GSList *keys;
} KEYINFO_REC;
typedef struct {
KEYINFO_REC *info;
char *key;
char *data;
} KEY_REC;
extern GSList *keyinfos;
void key_bind(const char *id, const char *description,
const char *key_default, const char *data, SIGNAL_FUNC func);
void key_unbind(const char *id, SIGNAL_FUNC func);
void key_configure_add(const char *id, const char *key, const char *data);
void key_configure_remove(const char *key);
KEYINFO_REC *key_info_find(const char *id);
int key_pressed(const char *key, void *data);
#define ENTRY_REDIRECT_FLAG_HOTKEY 0x01
#define ENTRY_REDIRECT_FLAG_HIDDEN 0x02
void keyboard_entry_redirect(SIGNAL_FUNC func, const char *entry,
int flags, void *data);
void keyboard_init(void);
void keyboard_deinit(void);
#endif