Debian Codegraph @

docs/manual/_demoKeyPressed_.html

raw
1 <html><head><meta name="robots" content="index,follow"><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
2 <title>demoKeyPressed</title>
3 <style>
4 td { padding-left: 5pt; padding-right: 5pt; }
5 th { padding-left: 5pt; padding-right: 5pt; }
6 code { white-space: pre-wrap; }
7 dd { white-space: pre-wrap; }
8 </style>
9 </head><body bgcolor="#FFFFFF">
10
11 <table border=0 cellpadding=0 cellspacing=0><tr><td bgcolor="#CCCC00"><table border=4 cellpadding=9><tr><td align=middle bgcolor="#000000"><font face="Monaco,Courier" size=6 color="#999900"><b>
12 demoKeyPressed
13 </b></font></table></table>
14 <p>A function that can be used in <a href="Scripting.html">Scripting</a>.</p>
15 <h2>Syntax and semantics</h2>
16 <dl>
17 <dt><b><code><font size=+1>demoKeyPressed</font></code></b> ( )
18 <dd>determine whether the user typed anything into the Demo window.</dd>
19 </dl>
20 <h2>Usage</h2>
21 <p>This function is usually called after a user event has been detected (with <a href="_demoWaitForInput_.html"><b><code><font size=+1>demoWaitForInput</font></code></b></a>), and is typically followed by determining the key that was pressed (with <a href="_demoKey-S_.html"><b><code><font size=+1>demoKey$</font></code></b></a>), perhaps while determining which modifier keys were pressed (with <a href="_demoShiftKeyPressed_.html"><b><code><font size=+1>demoShiftKeyPressed</font></code></b></a>, <a href="_demoOptionKeyPressed_.html"><b><code><font size=+1>demoOptionKeyPressed</font></code></b></a>, and/or <a href="_demoCommandKeyPressed_.html"><b><code><font size=+1>demoCommandKeyPressed</font></code></b></a>).</p>
22 <h3>Links to this page</h3>
23 <ul>
24 <li><a href="Demo_window.html">Demo window</a>
25 <li><a href="Demo_window_2__Getting_user_input.html">Demo window 2. Getting user input</a>
26 <li><a href="Functions.html">Functions</a>
27 </ul>
28 <hr>
29 <address>
30 <p>© Paul Boersma 2023</p>
31 </address>
32 </body>
33 </html>