21 New Patches.
[webos-internals:djcin7s-modifications.git] / phone / phone-enable-dialpad-vibration-with-audio.patch
1 diff --git a/usr/palm/applications/com.palm.app.phone/app/controllers/dialpad-assistant.js b/usr/palm/applications/com.palm.app.phone/app/controllers/dialpad-assistant.js
2 index 19e28e2..c7907cd 100644
3 --- a/usr/palm/applications/com.palm.app.phone/app/controllers/dialpad-assistant.js
4 +++ b/usr/palm/applications/com.palm.app.phone/app/controllers/dialpad-assistant.js
5 @@ -642,6 +642,13 @@ var DialpadAssistant = Class.create({
6         numberClick: function(event, key){
7                 
8                 if (key) {
9 +                       // tjb
10 +                       this.controller.serviceRequest("palm://com.palm.vibrate", {
11 +                       method: 'vibrate', parameters: { 
12 +                       period: '0',
13 +                       duration: '50' }
14 +                       });
15 +                       // END tjb
16                         TelephonyCommands.sendDTMF(key, true);
17                         this.formatAndUpdateDialString(key,event);
18                         if (this.dialString.length == 1 && this.speedDialString.length == 0) {
19 @@ -943,6 +950,14 @@ var DialpadAssistant = Class.create({
20                 if (this.isValidToneKey(this.pressedKey)
21                         && this.pressedKey !== Mojo.Char.backspace
22                         && (!this.appAssistant.lookupOnKeyPress || this.keyMapOpt.get(evt.keyIdentifier))) {
23 +                       // tjb
24 +                       this.controller.serviceRequest("palm://com.palm.vibrate", {
25 +                       method: 'vibrate', parameters: { 
26 +                       period: '0',
27 +                       duration: '50' }
28 +                       });
29 +                       // END tjb
30 +
31                         TelephonyCommands.sendDTMF(this.pressedKey, true);
32                 }
33