Skip to content

Commit 10d2ff5

Browse files
committed
xrEngine: fix double layout swith
1 parent daf3890 commit 10d2ff5

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

src/xrEngine/line_edit_control.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -238,9 +238,6 @@ void line_edit_control::init(u32 str_buffer_size, init_mode mode)
238238
assign_callback(SDL_SCANCODE_BACKSPACE, ks_Ctrl, Callback(this, &line_edit_control::delete_word_back));
239239
assign_callback(SDL_SCANCODE_DELETE, ks_Ctrl, Callback(this, &line_edit_control::delete_word_forward));
240240

241-
assign_callback(SDL_SCANCODE_LSHIFT, ks_Ctrl, Callback(this, &line_edit_control::SwitchKL));
242-
assign_callback(SDL_SCANCODE_LSHIFT, ks_Alt, Callback(this, &line_edit_control::SwitchKL));
243-
244241
} // if mode
245242

246243
create_key_state(SDL_SCANCODE_LSHIFT, ks_LShift);
@@ -740,7 +737,6 @@ void line_edit_control::compute_positions()
740737
}
741738

742739
void line_edit_control::clamp_cur_pos() { clamp(m_cur_pos, 0, (int)xr_strlen(m_edit_str)); }
743-
void line_edit_control::SwitchKL() { ActivateKeyboardLayout((HKL)HKL_NEXT, 0); }
744740
// -------------------------------------------------------------------------------------------------
745741

746742
void remove_spaces(pstr str)

src/xrEngine/line_edit_control.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ class ENGINE_API line_edit_control
103103
void xr_stdcall delete_selected_forward();
104104
void xr_stdcall delete_word_back();
105105
void xr_stdcall delete_word_forward();
106-
void xr_stdcall SwitchKL();
107106

108107
void assign_char_pairs(init_mode mode);
109108
void create_key_state(int const dik, key_state state);

src/xrEngine/xr_input.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,10 @@ void CInput::KeyUpdate()
186186
keyboardState[event.key.keysym.scancode] = false;
187187
cbStack.back()->IR_OnKeyboardRelease(event.key.keysym.scancode);
188188
break;
189+
190+
case SDL_TEXTINPUT:
191+
Msg("Input: [%s]\n", event.text.text);
192+
break;
189193
}
190194
}
191195

0 commit comments

Comments
 (0)