Project: Eclipse_Platform_UI
Bug 310342 'Home' key sends caret to the beginning of the line in the Java editor
Reported: 2010-04-23 16:36:05 | Status: resolved fixed

The key press should "ignore" whitespace and go to the first non-whitespace character instead of to the beginning of the line. ------------- 3.x trace JavaEditor$SmartLineStartAction(AbstractTextEditor$LineStartAction).run() line: 1359 JavaEditor$SmartLineStartAction(TextNavigationAction).runWithEvent(Event) line: 99 ActionHandler.execute(Map) line: 185 LegacyHandlerWrapper.execute(ExecutionEvent) line: 109 Command.executeWithChecks(ExecutionEvent) line: 476 ParameterizedCommand.executeWithChecks(Object, Object) line: 508 HandlerService.executeCommand(ParameterizedCommand, Event) line: 169 WorkbenchKeyboard.executeCommand(Binding, Event) line: 468 WorkbenchKeyboard.press(List, Event) line: 786 WorkbenchKeyboard.processKeyEvent(List, Event) line: 885 WorkbenchKeyboard.filterKeySequenceBindings(Event) line: 567 WorkbenchKeyboard.access$3(WorkbenchKeyboard, Event) line: 508 WorkbenchKeyboard$KeyDownFilter.handleEvent(Event) line: 123 EventTable.sendEvent(Event) line: 84 Display.filterEvent(Event) line: 1251 ------------- Compatibility trace Thread [main] (Suspended) StyledText.invokeAction(int) line: 6825 TextNavigationAction.run() line: 61 TextNavigationAction.runWithEvent(Event) line: 99 ActionHandler.execute(ExecutionEvent) line: 121 E4HandlerProxy.execute(IEclipseContext) line: 52 NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not available [native method] NativeMethodAccessorImpl.invoke(Object, Object[]) line: 79 DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 43 Method.invoke(Object, Object...) line: 618 MethodRequestor.callMethod(Method, Object[]) line: 58 MethodRequestor.execute() line: 32 InjectorImpl.invokeUsingClass(Object, Class<?>, String, Object, AbstractObjectSupplier) line: 167 InjectorImpl.invoke(Object, String, Object, AbstractObjectSupplier) line: 151 ContextInjectionFactory.invoke(Object, String, IEclipseContext, Object) line: 102 HandlerServiceImpl.executeHandler(ParameterizedCommand) line: 114 KeyBindingDispatcher.executeCommand(ParameterizedCommand, Event) line: 260 KeyBindingDispatcher.press(List, Event) line: 456 KeyBindingDispatcher.processKeyEvent(List, Event) line: 506 KeyBindingDispatcher.filterKeySequenceBindings(Event) line: 339 KeyBindingDispatcher.access$0(KeyBindingDispatcher, Event) line: 285 KeyBindingDispatcher$KeyDownFilter.handleEvent(Event) line: 74 EventTable.sendEvent(Event) line: 84 Display.filterEvent(Event) line: 1253

Files changed in fix:
bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/KeyBindingService.java