浏览代码

Fix alt+o shortcut not preventing default in Firefox

Thibaut Courouble 8 年之前
父节点
当前提交
9cce390ead
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      assets/javascripts/views/content/entry_page.coffee

+ 1 - 1
assets/javascripts/views/content/entry_page.coffee

@@ -154,5 +154,5 @@ class app.views.EntryPage extends app.View
 
   onAltO: =>
     return unless link = @find('._attribution:last-child ._attribution-link')
-    $.popup(link.href + location.hash)
+    @delay -> $.popup(link.href + location.hash)
     return