TikZ-Editor icon indicating copy to clipboard operation
TikZ-Editor copied to clipboard

Redefined shortcuts

Open ThSGM opened this issue 10 years ago • 2 comments

I'm having an issue with TikZ Editor redefining a few of the shortcuts that I would often use. For instance, Command + Shift + Left/Right arrow is used in OSX for home/end, but within TikZ Editor, this shifts me between the source and preamble tabs.

I'm not sure whether this is a function of keyboard, or whether the program has redefined things. Any advice?

ThSGM avatar Jan 14 '15 15:01 ThSGM

Hello,

I think replacing in tikz_editor/views/document/content.py, line 57:

show_source_action = ActionFactory.createAction(toolbar, "Source", "Show LaTeX source editor", shortcut=QKeySequence.SelectStartOfLine, slot=self.showSourceView, checkable=True)
show_preamble_action = ActionFactory.createAction(toolbar, "Preamble", "Show LaTeX preamble editor", shortcut=QKeySequence.SelectEndOfLine, slot=self.showPreambleView, checkable=True)

by

show_source_action = ActionFactory.createAction(toolbar, "Source", "Show LaTeX source editor", slot=self.showSourceView, checkable=True)
show_preamble_action = ActionFactory.createAction(toolbar, "Preamble", "Show LaTeX preamble editor", slot=self.showPreambleView, checkable=True)

should fix it.

ghost avatar Jan 14 '15 15:01 ghost

Ok, I should have some time to make the change this week (and some other issues to address) ... Mickael I might contact you for the binary builds.

fredokun avatar Jan 14 '15 15:01 fredokun