Project

General

Profile

Bug #1826

keyboard binding to enter key on quick search broken

Added by Chad Berkley over 14 years ago. Updated over 14 years ago.

Status:
Resolved
Priority:
Immediate
Assignee:
Category:
interface
Target version:
Start date:
12/10/2004
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
1826

Description

When you are typing in the quick search field, if you hit the delete (or
backspace key) anything that is selected on the canvas is deleted. I think the
key binding is being incorrectly assigned to the whole application instead of
just to the quick search field and "go" button.

History

#1 Updated by Rod Spears over 14 years ago

was this ever hooked up? I don't think it was for actors. Which one is broken?

#2 Updated by Shawn Bowers over 14 years ago

When I use the actor quick search on windows XP, this doesn't appear to be a
problem.

Chad, could this be a Mac thing? Or is this still a problem for you?

#3 Updated by Rod Spears over 14 years ago

I can't remember it ever working when hitting the return key. Not saying it
didn't, just implyig I think it has been broken a while.

#4 Updated by Chad Berkley over 14 years ago

I fixed this bug by changing the keyboard listener from looking at the window
focus. instead it now looks at the component focus. This was a simple change from
_jgraph.registerKeyboardAction(deletionListener, "BackSpace",
KeyStroke.getKeyStroke(KeyEvent.VK_BACK_SPACE, 0),
JComponent.WHEN_IN_WINDOW_FOCUSED);
to
_jgraph.registerKeyboardAction(deletionListener, "BackSpace",
KeyStroke.getKeyStroke(KeyEvent.VK_BACK_SPACE, 0),
JComponent.WHEN_FOCUSED);

#5 Updated by Christopher Brooks over 14 years ago

Should I make this change in the Ptolemy Tree as well?
It seems fairly safe.

#6 Updated by Redmine Admin over 6 years ago

Original Bugzilla ID was 1826

Also available in: Atom PDF