What does calling event$key() return? Comparing that return value to the Qt$Qt$Key_* values is really the most robust way to interpret keyboard events. More readable in this case, too.<br><br>Michael<br><br><div class="gmail_quote">
On Mon, May 9, 2011 at 11:17 AM, Hadley Wickham <span dir="ltr"><<a href="mailto:hadley@rice.edu">hadley@rice.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
See the attached script.<br>
<br>
Pressing the up key on my computer prints: [1] "\036"<br>
Pressing the up key on Garrett's computer prints: NULL<br>
<br>
Any idea what the problem might be? sessionInfo's below.<br>
<br>
Hadley<br>
<br>
<br>
My sessionInfo:<br>
R version 2.13.0 (2011-04-13)<br>
Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit)<br>
<br>
locale:<br>
[1] en_US.UTF-8<br>
<br>
attached base packages:<br>
[1] stats graphics utils datasets grDevices methods base<br>
<br>
other attached packages:<br>
[1] qtpaint_0.7.21 qtbase_0.8-13 devtools_0.1<br>
<br>
Garret's sessionInfo()<br>
<br>
R version 2.13.0 (2011-04-13)<br>
Platform: i386-apple-darwin9.8.0/i386 (32-bit)<br>
<br>
locale:<br>
[1] en_US.UTF-8<br>
<br>
attached base packages:<br>
[1] stats graphics grDevices utils datasets methods base<br>
<br>
other attached packages:<br>
[1] SuppDists_1.1-8 qtpaint_0.7.22 qtbase_0.8-13<br>
<br>
loaded via a namespace (and not attached):<br>
[1] tools_2.13.0<br>
<font color="#888888"><br>
--<br>
Assistant Professor / Dobelman Family Junior Chair<br>
Department of Statistics / Rice University<br>
<a href="http://had.co.nz/" target="_blank">http://had.co.nz/</a><br>
</font><br>_______________________________________________<br>
Qtinterfaces-devel mailing list<br>
<a href="mailto:Qtinterfaces-devel@lists.r-forge.r-project.org">Qtinterfaces-devel@lists.r-forge.r-project.org</a><br>
<a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/qtinterfaces-devel" target="_blank">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/qtinterfaces-devel</a><br>
<br></blockquote></div><br>