mirror of
https://gitlab.com/cc-ru/ocelot/ocelot-desktop.git
synced 2025-12-20 02:59:19 +01:00
Core review corrections
This commit is contained in:
parent
667a74519a
commit
6a252d86fd
@ -74,6 +74,8 @@ abstract class LogWidget extends Widget {
|
|||||||
entries.dropInPlace(count)
|
entries.dropInPlace(count)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// this is a fix for log widget not scaling down after being cleaned
|
||||||
|
// TODO: implement it nicely
|
||||||
size = minimumSize
|
size = minimumSize
|
||||||
parent.get.recalculateBoundsAndRelayout()
|
parent.get.recalculateBoundsAndRelayout()
|
||||||
}
|
}
|
||||||
|
|||||||
@ -30,7 +30,7 @@ class OcelotInterfaceWindow(storage: OcelotInterfaceLogStorage) extends PanelWin
|
|||||||
|
|
||||||
children :+= new TextInput() {
|
children :+= new TextInput() {
|
||||||
eventHandlers += {
|
eventHandlers += {
|
||||||
case event @ KeyEvent(KeyEvent.State.Press | KeyEvent.State.Repeat, Keyboard.KEY_UP | Keyboard.KEY_DOWN, _) if this.isFocused =>
|
case event @ KeyEvent(KeyEvent.State.Press | KeyEvent.State.Repeat, Keyboard.KEY_UP | Keyboard.KEY_DOWN, _) if isFocused =>
|
||||||
val currentInput = text
|
val currentInput = text
|
||||||
val index = if (event.code == Keyboard.KEY_UP) {
|
val index = if (event.code == Keyboard.KEY_UP) {
|
||||||
storage.findLastTextEntry(currentInput, storage.entryCount - historyPosition)
|
storage.findLastTextEntry(currentInput, storage.entryCount - historyPosition)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user