mirror of
https://github.com/flarum/framework.git
synced 2025-01-19 18:12:59 +08:00
parent
e0552239b6
commit
5fc23ff012
|
@ -52,10 +52,13 @@ export default class TextEditor extends Component {
|
|||
configTextarea(element, isInitialized) {
|
||||
if (isInitialized) return;
|
||||
|
||||
$(element).bind('keydown', 'meta+return', () => {
|
||||
var handler = () => {
|
||||
this.onsubmit();
|
||||
m.redraw();
|
||||
});
|
||||
};
|
||||
|
||||
$(element).bind('keydown', 'meta+return', handler);
|
||||
$(element).bind('keydown', 'ctrl+return', handler);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue
Block a user