diff options
| author | Matthias Melcher <github@matthiasm.com> | 2023-02-10 17:13:20 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-10 17:13:20 +0100 |
| commit | 7f87c847ba8ec976c6ad345942f9867658a89ab2 (patch) | |
| tree | 00717f3197ea9d2d76c45207dd4f468b2ee201cb /src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx | |
| parent | 72f860438170638d6aa492b477a59ff88b565d9d (diff) | |
Unlimited undo/redo for Fl_Input_ and Fl_Text_Buffer (#558) (#676)
Diffstat (limited to 'src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx')
| -rw-r--r-- | src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx b/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx index 1f9ed3249..452815afb 100644 --- a/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx +++ b/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx @@ -38,6 +38,17 @@ extern const char *fl_bg2; # include <multimon.h> #endif // !HMONITOR_DECLARED && _WIN32_WINNT < 0x0500 +static Fl_Text_Editor::Key_Binding extra_bindings[] = { + // Define MS Windows specific accelerators... + { 'y', FL_CTRL, Fl_Text_Editor::kf_redo ,0}, + { 0, 0, 0 ,0} +}; + + +Fl_WinAPI_Screen_Driver::Fl_WinAPI_Screen_Driver() : Fl_Screen_Driver() { + text_editor_extra_key_bindings = extra_bindings; + for (int i = 0; i < MAX_SCREENS; i++) scale_of_screen[i] = 1; +} int Fl_WinAPI_Screen_Driver::visual(int flags) { |
