From 33c3691b571ce4b6a2aa6997b70c3bc5d991ca9d Mon Sep 17 00:00:00 2001 From: Jed Barber Date: Mon, 12 Jun 2017 23:23:15 +1000 Subject: Keybinding methods all done for Text_Editor, with modifiers disabled due to FLTK issues --- src/c_fl_text_editor.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/c_fl_text_editor.cpp') diff --git a/src/c_fl_text_editor.cpp b/src/c_fl_text_editor.cpp index 9518f01..54c7735 100644 --- a/src/c_fl_text_editor.cpp +++ b/src/c_fl_text_editor.cpp @@ -263,6 +263,14 @@ void fl_text_editor_ctrl_shift_up(TEXTEDITOR te) { +void fl_text_editor_add_key_binding(TEXTEDITOR te, int k, int s, void * f) { + reinterpret_cast(te)->add_key_binding(k, s, reinterpret_cast(f)); +} + +void fl_text_editor_remove_key_binding(TEXTEDITOR te, int k, int s) { + reinterpret_cast(te)->remove_key_binding(k, s); +} + void fl_text_editor_remove_all_key_bindings(TEXTEDITOR te) { reinterpret_cast(te)->remove_all_key_bindings(); } -- cgit