summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOKAMURA, Yasunobu <okamura@informationsea.info>2020-01-16 20:18:31 +0900
committerAlbrecht Schlosser <albrechts.fltk@online.de>2020-01-16 16:17:36 +0100
commitdd3bf0791ea4b1cf18872c579e71d0cc17808de3 (patch)
tree39e90ca2994ceaf8f4f0f17a09b4bc4785a6bf0d
parent33825df108e2a1c521015ddd5578f796569cd832 (diff)
Fix JIS Keyboard dead keys
-rw-r--r--src/drivers/Cocoa/Fl_Cocoa_Screen_Driver.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/drivers/Cocoa/Fl_Cocoa_Screen_Driver.cxx b/src/drivers/Cocoa/Fl_Cocoa_Screen_Driver.cxx
index 835169e3e..71743d7cb 100644
--- a/src/drivers/Cocoa/Fl_Cocoa_Screen_Driver.cxx
+++ b/src/drivers/Cocoa/Fl_Cocoa_Screen_Driver.cxx
@@ -249,6 +249,7 @@ void Fl_Cocoa_Screen_Driver::insertion_point_location(int x, int y, int height)
int Fl_Cocoa_Screen_Driver::compose(int &del) {
int condition;
int has_text_key = Fl::compose_state || Fl::e_keysym <= '~' || Fl::e_keysym == FL_Iso_Key ||
+ Fl::e_keysym == FL_JIS_Underscore || Fl::e_keysym == FL_Yen ||
(Fl::e_keysym >= FL_KP && Fl::e_keysym <= FL_KP_Last && Fl::e_keysym != FL_KP_Enter);
condition = Fl::e_state&(FL_META | FL_CTRL) ||
(Fl::e_keysym >= FL_Shift_L && Fl::e_keysym <= FL_Alt_R) || // called from flagsChanged