Bug 115460 [key binding] Move keybindings for word caret moving to dialogAndWindow context
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/TextFieldNavigationHandler.java
static final boolean BUG_106024_TEXT_SELECTION= "win32".equals(SWT.getPlatform()); 
		
		private final Text fText;
		
		public TextNavigable(Text text) {
			fText= text;
			
			if (BUG_106024_TEXT_SELECTION) {
				fLastSelection= getSelection();
				fCaretPosition= fLastSelection.y;
				fText.addKeyListener(new KeyAdapter() {
					public void keyReleased(KeyEvent e) {
						selectionChanged();
					}
				});
				fText.addMouseListener(new MouseAdapter() {
					public void mouseUp(MouseEvent e) {
						selectionChanged();
					}
				});