Project

General

Profile

Actions

Bug #1826

closed

keyboard binding to enter key on quick search broken

Added by Chad Berkley about 18 years ago. Updated about 18 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.

Actions #1

Updated by Rod Spears about 18 years ago

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

Actions #2

Updated by Shawn Bowers about 18 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?

Actions #3

Updated by Rod Spears about 18 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.

Actions #4

Updated by Chad Berkley about 18 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);

Actions #5

Updated by Christopher Brooks about 18 years ago

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

Actions #6

Updated by Redmine Admin almost 10 years ago

Original Bugzilla ID was 1826

Actions

Also available in: Atom PDF