@Override
			public void keyPressed(KeyEvent e) {
				if (e.getKeyCode() == KeyEvent.VK_M && DockingUtils.isControlModifier(e)) {
					isHexMode = !isHexMode;
					modeConsumer.accept(isHexMode);
					repaint();
				}
			}
Overrides the JTextField mainly to allow hint painting for the current radix mode.
Ghidra/Framework/Docking/src/main/java/docking/widgets/textfield/HexDecimalModeTextField.java