To preface with my specs: Running on RedHat 9 using lwjgl 0.5
So, I noticed recently that if the Display is initialized in windowed mode and then the Keyboard is created, all keystrokes are consumed by the application, even if the window loses focus. Most notably, this makes debugging with NetBeans difficult, as I can’t hit the keystrokes to step through the code!
I think the obvious fix for this would be to simply a method to the Display object such as: boolean hasFocus(). Then within my app I could test this during the main loop, and release the Keyboard when it is false and reclaim the keyboard when it’s true.