Package com.atlassian.jira.util
Class BrowserUtils
java.lang.Object
com.atlassian.jira.util.BrowserUtils
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringReturns the modifier key appropriate for the user's browser and platform (used for access keys).static booleanisFilterBasedPngOpacity(String userAgent) Returns TRUE if the browser requires a Filter style opacity statement for PNGsstatic booleanisIe456Or7(String userAgent)
-
Field Details
-
USER_AGENT_HEADER
- See Also:
-
-
Constructor Details
-
BrowserUtils
public BrowserUtils()
-
-
Method Details
-
getModifierKey
Returns the modifier key appropriate for the user's browser and platform (used for access keys). Should match https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/accesskey.- Returns:
- Key or key combinations e.g. "Alt" or "Ctrl"
-
isIe456Or7
-
isFilterBasedPngOpacity
Returns TRUE if the browser requires a Filter style opacity statement for PNGs- IE 5 upwards on Windows
- Parameters:
userAgent- the user agent header from the request- Returns:
- true if the browser is IE 5+ on Windows
-