FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Adjustment to KeyboardFunctions example · Gidra/processing@c6db919 · GitHub

Repository navigation

Commit c6db919

Browse files
committed
Adjustment to KeyboardFunctions example
1 parent 4d00746 commit c6db919

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎java/examples/Basics/Input/KeyboardFunctions/KeyboardFunctions.pde‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ void draw()
5454

5555
void keyPressed()
5656
{
57-
// If the key is between 'A'(65) and 'z'(122)
58-
if( key >= 'A' && key <= 'z') {
57+
// If the key is between 'A'(65) to 'Z' and 'a' to 'z'(122)
58+
if((key >= 'A' && key <= 'Z') || (key >= 'a' && key <= 'z')) {
5959
int keyIndex;
6060
if(key <= 'Z') {
6161
keyIndex = key-'A';

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL