mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-16 08:12:42 +00:00
Add onMouseDown handler for Firefox functionality
This commit is contained in:
@@ -104,6 +104,7 @@ const Snippetbar = createClass({
|
|||||||
},
|
},
|
||||||
|
|
||||||
changeTheme : function(e){
|
changeTheme : function(e){
|
||||||
|
if(e.target.value == this.props.currentEditorTheme) return;
|
||||||
this.props.updateEditorTheme(e.target.value);
|
this.props.updateEditorTheme(e.target.value);
|
||||||
|
|
||||||
this.setState({
|
this.setState({
|
||||||
@@ -113,7 +114,7 @@ const Snippetbar = createClass({
|
|||||||
|
|
||||||
renderThemeSelector : function(){
|
renderThemeSelector : function(){
|
||||||
return <div className='themeSelector'>
|
return <div className='themeSelector'>
|
||||||
<select value={this.props.currentEditorTheme} onChange={this.changeTheme}>
|
<select value={this.props.currentEditorTheme} onChange={this.changeTheme} onMouseDown={(this.changeTheme)}>
|
||||||
{global.config.codeMirrorThemes.map((theme, key)=>{
|
{global.config.codeMirrorThemes.map((theme, key)=>{
|
||||||
return <option key={key} value={theme}>{theme}</option>;
|
return <option key={key} value={theme}>{theme}</option>;
|
||||||
})}
|
})}
|
||||||
|
|||||||
Reference in New Issue
Block a user