X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2Fdemos%2FDemoTextWindow.java;h=19b6502775c4fabd1b189d6c3f872c7696d7db13;hb=a2018e9964f6c58742cd1e6dd0a0c63e244a89d6;hp=a2ab68b0ae34bb6c6cb5d9da01da93405584d952;hpb=e16dda65585466c8987bd1efd718431450a96605;p=fanfix.git diff --git a/src/jexer/demos/DemoTextWindow.java b/src/jexer/demos/DemoTextWindow.java index a2ab68b..19b6502 100644 --- a/src/jexer/demos/DemoTextWindow.java +++ b/src/jexer/demos/DemoTextWindow.java @@ -3,7 +3,7 @@ * * The MIT License (MIT) * - * Copyright (C) 2016 Kevin Lamonte + * Copyright (C) 2017 Kevin Lamonte * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -31,6 +31,8 @@ package jexer.demos; import jexer.*; import jexer.event.*; import jexer.menu.*; +import static jexer.TCommand.*; +import static jexer.TKeypress.*; /** * This window demonstates the TText, THScroller, and TVScroller widgets. @@ -54,6 +56,12 @@ public class DemoTextWindow extends TWindow { super(parent, title, 0, 0, 44, 20, RESIZABLE); textField = addText(text, 1, 1, 40, 16); + + statusBar = newStatusBar("Reflowable text window"); + statusBar.addShortcutKeypress(kbF1, cmHelp, "Help"); + statusBar.addShortcutKeypress(kbF2, cmShell, "Shell"); + statusBar.addShortcutKeypress(kbF3, cmOpen, "Open"); + statusBar.addShortcutKeypress(kbF10, cmExit, "Exit"); } /**