Remove audio and haptic feedback while key repeating

Bug: 6522943
Change-Id: Iad1b11172e47bfbae2b4129361a56b9d793f8f62
main
Tadashi G. Takaoka 2013-08-13 17:02:49 +09:00
parent 0adc8a2ad3
commit d1d607287d
1 changed files with 2 additions and 2 deletions

View File

@ -2703,8 +2703,8 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
// No need to feedback while sliding input.
return;
}
if (isRepeatKey && code == Constants.CODE_DELETE && !mConnection.canDeleteCharacters()) {
// No need to feedback when repeating delete key will have no effect.
if (isRepeatKey) {
// No need to feedback when repeating key.
return;
}
AudioAndHapticFeedbackManager.getInstance().hapticAndAudioFeedback(code, keyboardView);