Don't post the key press command when the repeat interval fires if the key
has been released. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2165 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: KeyboardManager.java,v 1.16 2003/01/14 00:53:38 shaper Exp $
|
// $Id: KeyboardManager.java,v 1.17 2003/01/16 21:18:02 shaper Exp $
|
||||||
|
|
||||||
package com.threerings.util;
|
package com.threerings.util;
|
||||||
|
|
||||||
@@ -530,7 +530,7 @@ public class KeyboardManager
|
|||||||
release(now);
|
release(now);
|
||||||
// }
|
// }
|
||||||
|
|
||||||
} else if (_pressCommand != null) {
|
} else if (_lastPress != 0 && _pressCommand != null) {
|
||||||
// post the key press command again
|
// post the key press command again
|
||||||
postPress(now);
|
postPress(now);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user