mirror of
https://github.com/gnosygnu/xowa.git
synced 2025-05-31 22:44:34 +00:00
Gui: Force escape in url bar to restore url
This commit is contained in:
parent
faebc72c4f
commit
b37b5ceddd
@ -268,8 +268,10 @@ class Swt_combo_text__key_down implements Listener { // for list-box, highligh
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case SWT.ESC:
|
case SWT.ESC:
|
||||||
list.Sel_idx_by_key(-1);
|
if (list.Visible()) { // NOTE: must check if list is visible, else will need to press escape twice to restore url; DATE:2017-02-15
|
||||||
list.Visible_(false);
|
list.Sel_idx_by_key(-1);
|
||||||
|
list.Visible_(false);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user