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 String
Returns the modifier key appropriate for the user's browser and platform (used for access keys).static boolean
isFilterBasedPngOpacity
(String userAgent) Returns TRUE if the browser requires a Filter style opacity statement for PNGsstatic boolean
isIe456Or7
(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
-