File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -20,8 +20,8 @@ function draw() {
20
20
21
21
function keyPressed ( ) {
22
22
var keyIndex = - 1 ;
23
- if ( key >= 'A ' && key <= 'Z ' ) {
24
- keyIndex = key . charCodeAt ( 0 ) - 'A ' . charCodeAt ( 0 ) ;
23
+ if ( key >= 'a ' && key <= 'z ' ) {
24
+ keyIndex = key . charCodeAt ( 0 ) - 'a ' . charCodeAt ( 0 ) ;
25
25
}
26
26
if ( keyIndex == - 1 ) {
27
27
// If it's not a letter key, clear the screen
Original file line number Diff line number Diff line change @@ -20,8 +20,8 @@ function draw() {
20
20
21
21
function keyPressed ( ) {
22
22
var keyIndex = - 1 ;
23
- if ( key >= 'A ' && key <= 'Z ' ) {
24
- keyIndex = key . charCodeAt ( 0 ) - 'A ' . charCodeAt ( 0 ) ;
23
+ if ( key >= 'a ' && key <= 'z ' ) {
24
+ keyIndex = key . charCodeAt ( 0 ) - 'a ' . charCodeAt ( 0 ) ;
25
25
}
26
26
if ( keyIndex == - 1 ) {
27
27
// If it's not a letter key, clear the screen
Original file line number Diff line number Diff line change @@ -20,8 +20,8 @@ function draw() {
20
20
21
21
function keyPressed ( ) {
22
22
var keyIndex = - 1 ;
23
- if ( key >= 'A ' && key <= 'Z ' ) {
24
- keyIndex = key . charCodeAt ( 0 ) - 'A ' . charCodeAt ( 0 ) ;
23
+ if ( key >= 'a ' && key <= 'z ' ) {
24
+ keyIndex = key . charCodeAt ( 0 ) - 'a ' . charCodeAt ( 0 ) ;
25
25
}
26
26
if ( keyIndex == - 1 ) {
27
27
// If it's not a letter key, clear the screen
You can’t perform that action at this time.
0 commit comments