Feature #1165

RCP: add keyboard shortcuts to scale and pan in the charts

Added by Sebastien Jacquot over 4 years ago. Updated 6 months ago.

Status:Feedback Start date:12/05/2014
Priority:Normal Due date:
Assignee:- % Done:

80%

Category:Charts Spent time: -
Target version:TXM 0.8.1

Description

Add keyboard shortcuts to scale and pan in the charts.
Zoom/scale:
  • CTRL/CMD +
  • CTRL/CMD -
  • CTRL/CMD + (numpad)
  • CTRL/CMD - (numpad)
Pan:
  • CTRL/CMD + Arrows keys
Reset view:
  • CTRL/CMD 0
  • CTRL/CMD 0 (numpad)

Validation tests

  • create some charts with JFC charts engine
  • zoom, pan and reset view with keyboard using all the above specified keys
  • create some charts with R charts engine
  • zoom, pan and reset view with keyboard using all the above specified keys
  • please provide the operating system used for the tests

History

#1 Updated by Sebastien Jacquot over 4 years ago

Done. The zoom only works with the + and - of the keypad, must I add the others + and - keys of keyboard ?

#2 Updated by Sebastien Jacquot over 4 years ago

  • Subject changed from add keyboard shortcuts to scale and pan in the charts to RCP: add keyboard shortcuts to scale and pan in the charts

#3 Updated by Sebastien Jacquot over 4 years ago

  • Description updated (diff)

#4 Updated by Sebastien Jacquot over 4 years ago

The CTRL zoom only works after having clicked inside the SVG component with R charts engine/SVG Batik chart editor.
It may be a global SVG Batik editor focus problem, at this moment only the JFC chart editor focus system has been managed.

#5 Updated by Sebastien Jacquot over 4 years ago

BUG: the keyboard zoom on Mac OS X uses the CTRL key as modifier. It should use the CMD key modifier.

#6 Updated by Matthieu Decorde over 4 years ago

  • Description updated (diff)
  • % Done changed from 80 to 90

#7 Updated by Sebastien Jacquot about 4 years ago

Sebastien Jacquot a écrit :

BUG: the keyboard zoom on Mac OS X uses the CTRL key as modifier. It should use the CMD key modifier.

Fixed.

#8 Updated by Sebastien Jacquot about 4 years ago

  • % Done changed from 90 to 70

Need to add non numeric keypad + (KeyEvent.VK_EQUALS) and - (KeyEvent.VK_6) keys for keyboards without keypad.
Need to share these keys def between CustomChartPanel and SVGPanel.
Add CTRL/CMD + 0 to reset zoom ?

#9 Updated by Sebastien Jacquot about 4 years ago

  • Target version changed from TXM 0.7.7 to TXM 0.7.8

#10 Updated by Sebastien Jacquot almost 4 years ago

  • Description updated (diff)

#11 Updated by Matthieu Decorde almost 4 years ago

  • Target version changed from TXM 0.7.8 to TXM 0.8.0a (split/restructuration)

#12 Updated by Sebastien Jacquot over 3 years ago

  • Description updated (diff)
  • % Done changed from 70 to 80

#13 Updated by Sebastien Jacquot over 3 years ago

  • Description updated (diff)

#14 Updated by Sebastien Jacquot over 3 years ago

  • Target version changed from TXM 0.8.0a (split/restructuration) to TXM 0.7.8

#15 Updated by Sebastien Jacquot over 3 years ago

  • Status changed from Feedback to In Progress
  • % Done changed from 80 to 70

It seems the CTRL - (with the 6 key) doesn't work on laptop with Linux.

#16 Updated by Sebastien Jacquot over 3 years ago

  • Status changed from In Progress to Feedback
  • % Done changed from 70 to 80

#17 Updated by Sebastien Jacquot about 3 years ago

BP: - and 0 doesn't seem to work with a laptop and Ubuntu

#18 Updated by Sebastien Jacquot over 2 years ago

  • Target version changed from TXM 0.7.8 to TXM 0.8.0a (split/restructuration)

#19 Updated by Sebastien Jacquot 12 months ago

  • Target version changed from TXM 0.8.0a (split/restructuration) to TXM 0.8.0

#20 Updated by Sebastien Jacquot 6 months ago

  • Target version changed from TXM 0.8.0 to TXM 0.8.1

New Linux tests:

Non keypad CTRL+6 and CTRL+0 doesn't work.
Keypad: all OK.

Also available in: Atom PDF