@@ -56,8 +56,8 @@ AsciiComposer::~AsciiComposer() {
5656}
5757
5858ProcessResult AsciiComposer::ProcessKeyEvent (const KeyEvent& key_event) {
59- if ((key_event.shift () && key_event.ctrl ()) || key_event.alt () ||
60- key_event.hyper () || key_event.super ()) {
59+ if ((key_event.Shift () && key_event.Ctrl ()) || key_event.Alt () ||
60+ key_event.Hyper () || key_event.Super ()) {
6161 shift_key_pressed_ = ctrl_key_pressed_ = false ;
6262 return kNoop ;
6363 }
@@ -103,7 +103,7 @@ ProcessResult AsciiComposer::ProcessKeyEvent(const KeyEvent& key_event) {
103103 // other keys
104104 shift_key_pressed_ = ctrl_key_pressed_ = false ;
105105 // possible key binding: Control+x, Shift+space
106- if (key_event.ctrl () || (key_event.shift () && ch == XK_space)) {
106+ if (key_event.Ctrl () || (key_event.Shift () && ch == XK_space)) {
107107 return kNoop ;
108108 }
109109 Context* ctx = engine_->context ();
@@ -135,19 +135,19 @@ ProcessResult AsciiComposer::ProcessCapsLock(const KeyEvent& key_event) {
135135 return kRejected ;
136136 }
137137 }
138- toggle_with_caps_ = !key_event.caps ();
138+ toggle_with_caps_ = !key_event.Caps ();
139139 // NOTE: for Linux, Caps Lock modifier is clear when we are about to
140140 // turn it on; for Windows it is the opposite:
141141 // Caps Lock modifier has been set before we process VK_CAPITAL.
142142 // here we assume IBus' behavior and invert caps with ! operation.
143- SwitchAsciiMode (!key_event.caps (), caps_lock_switch_style_);
143+ SwitchAsciiMode (!key_event.Caps (), caps_lock_switch_style_);
144144 return kAccepted ;
145145 } else {
146146 return kRejected ;
147147 }
148148 }
149- if (key_event.caps ()) {
150- if (!good_old_caps_lock_ && !key_event.release () && !key_event.ctrl () &&
149+ if (key_event.Caps ()) {
150+ if (!good_old_caps_lock_ && !key_event.release () && !key_event.Ctrl () &&
151151 isascii (ch) && isalpha (ch)) {
152152 // output ascii characters ignoring Caps Lock
153153 if (islower (ch))
0 commit comments