Mattflaschen has uploaded a new change for review.
https://gerrit.wikimedia.org/r/198182
Change subject: Add @ as a keyboard shortcut to open mentions.
......................................................................
Add @ as a keyboard shortcut to open mentions.
This allows you to add mentions fluidly, without ever using the mouse.
However, it also means you can't type the at sign normally. We'll see
if this is an issue. The workaround is just to paste it in.
Bug: T93324
Change-Id: Ie9299768e1ace0c50ccb62599e53ff794f7150ca
---
M Resources.php
A modules/editor/editors/visualeditor/mw.flow.ve.TriggerRegistry.js
2 files changed, 11 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Flow
refs/changes/82/198182/1
diff --git a/Resources.php b/Resources.php
index b741f98..0c48022 100644
--- a/Resources.php
+++ b/Resources.php
@@ -447,6 +447,7 @@
'editor/editors/visualeditor/ui/contextitem/mw.flow.ve.ui.MentionContextItem.js',
'editor/editors/visualeditor/ui/widgets/mw.flow.ve.ui.MentionTargetInputWidget.js',
'editor/editors/visualeditor/mw.flow.ve.CommandRegistry.js',
+
'editor/editors/visualeditor/mw.flow.ve.TriggerRegistry.js',
),
'styles' => array(
'editor/editors/visualeditor/mw.flow.ve.Target.less',
diff --git a/modules/editor/editors/visualeditor/mw.flow.ve.TriggerRegistry.js
b/modules/editor/editors/visualeditor/mw.flow.ve.TriggerRegistry.js
new file mode 100644
index 0000000..3b9faed
--- /dev/null
+++ b/modules/editor/editors/visualeditor/mw.flow.ve.TriggerRegistry.js
@@ -0,0 +1,10 @@
+( function ( ve ) {
+ 'use strict';
+
+ ve.ui.triggerRegistry.register(
+ 'flowMention',
+ new ve.ui.Trigger(
+ 'shift+2'
+ )
+ );
+} ( ve ) );
--
To view, visit https://gerrit.wikimedia.org/r/198182
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie9299768e1ace0c50ccb62599e53ff794f7150ca
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: master
Gerrit-Owner: Mattflaschen <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits