Add keyboard shortcuts for bold, italic and underline buttons (#34549).

Patch by Marius BALTEANU.


git-svn-id: http://svn.redmine.org/redmine/trunk@20729 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2021-01-26 06:50:34 +00:00
parent 876d6fd628
commit 082570094a
5 changed files with 115 additions and 7 deletions

View File

@@ -26,6 +26,7 @@
jsToolBar.prototype.elements.strong = {
type: 'button',
title: 'Strong',
shortcut: 'b',
fn: {
wiki: function() { this.singleTag('**') }
}
@@ -35,6 +36,7 @@ jsToolBar.prototype.elements.strong = {
jsToolBar.prototype.elements.em = {
type: 'button',
title: 'Italic',
shortcut: 'i',
fn: {
wiki: function() { this.singleTag("*") }
}
@@ -44,6 +46,7 @@ jsToolBar.prototype.elements.em = {
jsToolBar.prototype.elements.ins = {
type: 'button',
title: 'Underline',
shortcut: 'u',
fn: {
wiki: function() { this.singleTag('_') }
}