summaryrefslogtreecommitdiff
path: root/src/Fl_Input.cxx
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2013-02-08 11:58:19 +0000
committerManolo Gouy <Manolo>2013-02-08 11:58:19 +0000
commit914e7f9b0926a62f65c0351963ba533c6dee09f5 (patch)
treea3022792cb9058aa5beda3fe15808d9963f3f870 /src/Fl_Input.cxx
parentb22744aac0d54f16d39b2e01654fee9a5e47407a (diff)
Mac OS text input: removed the Fl::marked_text_length() function that's not necessary.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9816 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Input.cxx')
-rw-r--r--src/Fl_Input.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Fl_Input.cxx b/src/Fl_Input.cxx
index d712a7d8f..30231be5c 100644
--- a/src/Fl_Input.cxx
+++ b/src/Fl_Input.cxx
@@ -359,8 +359,8 @@ int Fl_Input::handle_key() {
Fl::event_text(), Fl::event_length());
}
#ifdef __APPLE__
- if (Fl::marked_text_length()) {
- this->mark( this->position() - Fl::marked_text_length() );
+ if (Fl::compose_state) {
+ this->mark( this->position() - Fl::compose_state );
}
#endif
return 1;
@@ -592,7 +592,7 @@ int Fl_Input::handle(int event) {
switch (event) {
#ifdef __APPLE__
case FL_UNFOCUS:
- if (Fl::marked_text_length()) {
+ if (Fl::compose_state) {
this->mark( this->position() );
Fl::reset_marked_text();
}
@@ -818,7 +818,7 @@ Fl_Secret_Input::Fl_Secret_Input(int X,int Y,int W,int H,const char *l)
int Fl_Secret_Input::handle(int event) {
int retval = Fl_Input::handle(event);
#ifdef __APPLE__
- if (event == FL_KEYBOARD && Fl::marked_text_length()) {
+ if (event == FL_KEYBOARD && Fl::compose_state) {
this->mark( this->position() ); // don't underline marked text
}
#endif