summaryrefslogtreecommitdiff
path: root/src/drivers/WinAPI
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/WinAPI')
-rw-r--r--src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.H4
-rw-r--r--src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx11
2 files changed, 12 insertions, 3 deletions
diff --git a/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.H b/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.H
index 3bb5e11a6..3bbd51d59 100644
--- a/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.H
+++ b/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.H
@@ -41,9 +41,7 @@ protected:
public:
float dpi[MAX_SCREENS][2];
- Fl_WinAPI_Screen_Driver() : Fl_Screen_Driver() {
- for (int i = 0; i < MAX_SCREENS; i++) scale_of_screen[i] = 1;
- }
+ Fl_WinAPI_Screen_Driver();
// --- display management
int visual(int flags) FL_OVERRIDE;
// --- screen configuration
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)
{