 #
 # The "name" property below is a short-form name to appear in the link-hints mode's name.  It's for debug only.
 #
+isMac = KeyboardUtils.platform == "Mac"
 OPEN_IN_CURRENT_TAB =
   name: "curr-tab"
 OPEN_IN_NEW_BG_TAB =
   name: "bg-tab"
+  clickModifiers: metaKey: isMac, ctrlKey: not isMac
 OPEN_IN_NEW_FG_TAB =
   name: "fg-tab"
+  clickModifiers: shiftKey: true, metaKey: isMac, ctrlKey: not isMac
 OPEN_WITH_QUEUE =
   name: "queue"
+  clickModifiers: metaKey: isMac, ctrlKey: not isMac
 COPY_LINK_URL =
   name: "link"
   linkActivator: (link) ->


  setOpenLinkMode: (@mode) ->
    clickActivator = (modifiers) -> (link) -> DomUtils.simulateClick link, modifiers
    @linkActivator = @mode.linkActivator if @mode.linkActivator?

    if @mode is OPEN_IN_NEW_BG_TAB or @mode is OPEN_IN_NEW_FG_TAB or @mode is OPEN_WITH_QUEUE
      if @mode is OPEN_IN_NEW_BG_TAB

        @hintMode.setIndicator "Open link in new tab and switch to it."
      else
        @hintMode.setIndicator "Open multiple links in new tabs."
    else if @mode is COPY_LINK_URL
      @hintMode.setIndicator "Copy link URL to Clipboard."
    else if @mode is OPEN_INCOGNITO
      @hintMode.setIndicator "Open link in incognito window."
    else if @mode is DOWNLOAD_LINK_URL
      @hintMode.setIndicator "Download link URL."
    else # OPEN_IN_CURRENT_TAB
      @hintMode.setIndicator "Open link in current tab."

  #
  # Creates a link marker for the given link.
