mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 19:24:36 +08:00
FIX: shift+click on links
Default browser's behavior when shift+clicking was messed up. This adds the shift key modifier to the list of click modifiers in both `click_track` and `discourse`. Also updated & refactored a bit the `click_track_spec`.
This commit is contained in:
@ -129,7 +129,7 @@ Discourse = Ember.Application.createWithMixins({
|
||||
});
|
||||
|
||||
$('#main').on('click.discourse', 'a', function(e) {
|
||||
if (e.isDefaultPrevented() || e.metaKey || e.ctrlKey) return;
|
||||
if (e.isDefaultPrevented() || e.shiftKey || e.metaKey || e.ctrlKey) return;
|
||||
|
||||
var $currentTarget = $(e.currentTarget);
|
||||
var href = $currentTarget.attr('href');
|
||||
|
Reference in New Issue
Block a user