Skip to content

Commit 13e6bea

Browse files
committed
Fix for t key being allowed through filters
See https://github.com/firstopinion/formatter.js/pull/70 for more information
1 parent 51c068b commit 13e6bea

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

dist/amd/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ utils.isSpecialKeyPress = function (which, keyCode) {
143143
'uparrow': { 'which': 0, 'keyCode': 38 },
144144
'rightarrow': { 'which': 0, 'keyCode': 39 },
145145
'downarrow': { 'which': 0, 'keyCode': 40 },
146-
'F5': { 'which': 116, 'keyCode': 116 }
146+
'F5': { 'which': 0, 'keyCode': 116 }
147147
};
148148

149149
return utils.getMatchingKey(which, keyCode, keys);

dist/common/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ utils.isSpecialKeyPress = function (which, keyCode) {
143143
'uparrow': { 'which': 0, 'keyCode': 38 },
144144
'rightarrow': { 'which': 0, 'keyCode': 39 },
145145
'downarrow': { 'which': 0, 'keyCode': 40 },
146-
'F5': { 'which': 116, 'keyCode': 116 }
146+
'F5': { 'which': 0, 'keyCode': 116 }
147147
};
148148

149149
return utils.getMatchingKey(which, keyCode, keys);

dist/formatter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ var utils = function () {
271271
'keyCode': 40
272272
},
273273
'F5': {
274-
'which': 116,
274+
'which': 0,
275275
'keyCode': 116
276276
}
277277
};

dist/formatter.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/jquery.formatter.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ var utils = function () {
217217
// 'uparrow': { 'which': 38, 'keyCode': 38 },
218218
// 'rightarrow': { 'which': 39, 'keyCode': 39 },
219219
// 'downarrow': { 'which': 40, 'keyCode': 40 },
220-
// 'F5': { 'which': 116, 'keyCode': 116 }
220+
// 'F5': { 'which': 0, 'keyCode': 116 }
221221
// };
222222
// return utils.getMatchingKey(which, keyCode, keys);
223223
// };
@@ -259,7 +259,7 @@ var utils = function () {
259259
'keyCode': 40
260260
},
261261
'F5': {
262-
'which': 116,
262+
'which': 0,
263263
'keyCode': 116
264264
}
265265
};

0 commit comments

Comments
 (0)