fix: 3.0.1 (#515)

* fix @key
This commit is contained in:
RB 2022-08-24 20:37:19 +08:00 committed by GitHub
parent 3458e67f48
commit 80d9e963da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 6 deletions

View file

@ -10,7 +10,7 @@
</parent>
<groupId>com.rebuild</groupId>
<artifactId>rebuild</artifactId>
<version>3.0.0</version>
<version>3.0.1</version>
<name>rebuild</name>
<description>Building your business-systems freely!</description>
<!-- UNCOMMENT USE TOMCAT -->

View file

@ -65,11 +65,11 @@ public class Application implements ApplicationListener<ApplicationStartedEvent>
/**
* Rebuild Version
*/
public static final String VER = "3.0.0";
public static final String VER = "3.0.1";
/**
* Rebuild Build [MAJOR]{1}[MINOR]{2}[PATCH]{2}[BUILD]{2}
*/
public static final int BUILD = 3000005;
public static final int BUILD = 3000106;
static {
// Driver for DB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

View file

@ -207,7 +207,7 @@ class FeedsEditor extends React.Component {
maxLength="2000"
onFocus={() => this.setState({ focus: true })}
onBlur={() => this.setState({ focus: false })}
onKeyDown={(e) => this._handleInputAt(e)}
onKeyUp={(e) => this._handleInputAt(e)}
defaultValue={this.props.initValue}
/>
<div className="action-btns">
@ -362,13 +362,15 @@ class FeedsEditor extends React.Component {
}
_handleInputAt(e) {
if (e.key === 'Shift' || e.key === 'Process') return true
if (this._handleInput__Timer) {
clearTimeout(this._handleInput__Timer)
this._handleInput__Timer = null
}
this.__lastInputKey = e.key
if (e.key === '@' || e.keyCode === 229) {
if (e.key === '@') {
this.__lastInputKey = '@'
this._handleInput__Timer = setTimeout(() => this._UserSelector.toggle('show'), 400)
}
}