Why does Ctrl+. not work when I bind it to a command in Emacs?

In short, most terminal emulators are limited in the control characters they can produce (for the simple reason that the original terminals that they are emulating were likewise limited). So your terminal is very likely not producing anything other than . when you press C-. (and if that’s the case, that’s basically your answer, unless … Read more

Java KeyListener Not Registering Arrow Keys

Yep, you’ll see the arrow keys respond to keyPressed and keyReleased, not keyTyped. My SSCCE: import java.awt.Dimension; import java.awt.event.KeyAdapter; import java.awt.event.KeyEvent; import javax.swing.*; public class ArrowTest extends JPanel { private static final int PREF_W = 400; private static final int PREF_H = PREF_W; public ArrowTest() { setFocusable(true); requestFocusInWindow(); addKeyListener(new KeyAdapter() { @Override public void keyTyped(KeyEvent … Read more

tech